1 decade ago by Manic
Is there a plugin or anything to define a polygon hitbox based on an entity's image alpha? I don't want to have to define Box2D hitboxes for a simple shooting game, and would love to see hitboxes that aren't scaled exactly to an entity. For instance, one of the enemies in a game I'm working on is a giant spider--all legs with a small body. Clearly the whole image (with a ton of alpha in it, for all of the empty space around the legs, since the body is fat and takes up that much width but is high up) is too big a hitbox. Bullets disappear a good second before they actually hit the spider, since they hit the other bit first.
How do I make it so that the hitbox is built by the alpha, not the bounding box of the image?
How do I make it so that the hitbox is built by the alpha, not the bounding box of the image?