Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Center of Rotation

Author
Message
Zyronagon
16
Years of Service
User Offline
Joined: 6th Mar 2008
Location: USA
Posted: 26th Feb 2009 00:05
Okay, so I'm moving a sprite around with move sprite + rotate sprite (top-down view). But I noticed that when I stop to turn, the sprite pivots on the left-hand corner of the sprite. How to I adjust the center of rotation?


Plz help.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 26th Feb 2009 11:01
look up sprite offset, so if your sprite is 32x32 your offset would be 16x16.

Dark Physics makes any hot drink go cold.
Zyronagon
16
Years of Service
User Offline
Joined: 6th Mar 2008
Location: USA
Posted: 27th Feb 2009 00:34
Thanks, I didn't even think of that

Login to post a reply

Server time is: 2024-11-25 10:25:29
Your offset time is: 2024-11-25 10:25:29