[Request] Automatic Hitbox Detector

Mods, guides how to use and install mods go right in here.
Post Reply
User avatar
TheBloodyScreen
Posts: 28
Joined: 03 Feb 2012, 20:20
Contact:

Post » 12 Apr 2012, 01:22

Hey guys.

I was wondering if anyone could write a mod which automatically detects the mario sprites and creates a hitbox.
It would be awesome if you could add your own characters to the game without having to edit the hitbox.

User avatar
Zlmpery
Posts: 339
Joined: 05 Feb 2012, 19:12
Contact:

Post » 12 Apr 2012, 01:24

Yeah, it would really help if you're making a character.
However, we know that it would be really difficult.

Camewel
Posts: 2996
Joined: 02 Feb 2012, 21:32

Post » 12 Apr 2012, 01:30

I'm not sure what you mean here. The graphics all have to be a certain size anyway.

User avatar
Zlmpery
Posts: 339
Joined: 05 Feb 2012, 19:12
Contact:

Post » 12 Apr 2012, 01:52

It has to be a certain size? Hmm.
Well if he were to make a thinner character, it wouldn't work? Does it have to be the exact size of Mario?

Maurice
Stabyourself.net
Posts: 2145
Joined: 01 Feb 2012, 20:19

Post » 12 Apr 2012, 02:19

Game uses AABB.

Camewel
Posts: 2996
Joined: 02 Feb 2012, 21:32

Post » 12 Apr 2012, 02:40

Maurice go to sleep you're not being helpful. --This is actually mostly presumption based on that one post, he actually was helpful in the turrets topic.
Mario's graphics all have to be inside a certain width and height limit. As long as you kept the spacing constant, you could make a thinner character. You'd just then need to go into the Mario.lua file and change his width. Although it is theoretically possible for the game to poll for opacity in every tile and thus determine the width, that would be much more effort than it is worth. By the way, the width is measured in pixels*16, so your width should be the amount of pixels wide your new character is / 16.

Maurice
Stabyourself.net
Posts: 2145
Joined: 01 Feb 2012, 20:19

Post » 12 Apr 2012, 04:23

Game uses AABB, thus there's no "hitboxes", just a single bounding box.
Stop being rude when I'm actually being helpful.

User avatar
rokit
Posts: 2095
Joined: 03 Feb 2012, 00:47

Post » 12 Apr 2012, 04:25

By the way AABB means Axis Aligned Bounding Box which is basically a RECTANGLE. NOTHING PRECISE (unless your character is a square)
Last edited by rokit on 12 Apr 2012, 04:27, edited 1 time in total.

Maurice
Stabyourself.net
Posts: 2145
Joined: 01 Feb 2012, 20:19

Post » 12 Apr 2012, 04:26

rokit boy wrote:Axis Aligned Bounding Box which is basically a square.
what
If it was a square it would be an axis aligned bounding cube (since it's a 3D term). Box implies rectangle for 2D.

User avatar
rokit
Posts: 2095
Joined: 03 Feb 2012, 00:47

Post » 12 Apr 2012, 04:28

HAPPY NOW?

Maurice
Stabyourself.net
Posts: 2145
Joined: 01 Feb 2012, 20:19

Post » 12 Apr 2012, 04:28

No. Stop posting when you're clueless.

User avatar
rokit
Posts: 2095
Joined: 03 Feb 2012, 00:47

Post » 12 Apr 2012, 04:30

I'm not clueless, anyway, why is this topic still up?

DiamondPhoenix
Posts: 107
Joined: 04 Mar 2012, 05:35

Post » 14 Apr 2012, 05:18

rokit boy wrote:Words... ...anyway, why is this topic still up?
Is that backseat moderating i see there?

Post Reply