Jump to content
  • Advertisement
Sign in to follow this  
Jacob Roman

Positioning 2D Sprite

This topic is 4698 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

Which is the best place on a sprite to position it from? In my case, it's a fighting game. Would it be the center, the bottom center, top-left corner, or what? I can't decide. Although I am leaning towards using the bottom center of a sprite. What do you think?

Share this post


Link to post
Share on other sites
Advertisement
You can give your sprite a "hot spot" attribute which can represent the rotation point of the sprite. Have it default as the center and then let the client programmer change the "hot spot" when required.

Share this post


Link to post
Share on other sites
There is no rotation point since I'm not gonna be using rotation. So I guess the bottom center seems alright, I hope. Unless someones gotta better suggestion.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!