Jump to content
  • Advertisement
Sign in to follow this  
bigtunacan

Sprite Bounding Box tools?

This topic is 2542 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've googled and haven't come up with anything here.

I want to be able to load my sprites into a tool and create bounding boxes for my sprites that I can then save off to a file and load into my sprite class in game. Anyone know of a good tool out there for this already? I would love to not have to roll my own tool :)

Share this post


Link to post
Share on other sites
Advertisement
Why would you want to do that? Any decent API that allows your to load a sprite will also allow you to get the width and height of the sprite. Isn't that all a bounding box is?

Share this post


Link to post
Share on other sites
@BeerNutts,

Width & height of sprite can be used as a bounding box in some situations; where you don't care what area of the sprite is hit; same goes for per pixel collisions. In my case I want to be able to define 1 or more bounding boxes for a sprite that allow me to define what specific area of the sprite was hit. For example, I want to be able to tell the difference of when a character is shot in the legs, versus the head, head shot is instant kill; leg shots take multiple hits, etc... This would be just one example where being able to define my own custom bounding boxes come in handy.

Share this post


Link to post
Share on other sites
OIC, I misunderstood. Well, outside of creating your own tool to do this, or to manually enter the data into an xml file, I'm not familiar with an external tool that does this.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!