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.

Dark GDK / dbRotateSprite Question

Author
Message
Zahl
15
Years of Service
User Offline
Joined: 12th Jul 2009
Location:
Posted: 13th Jul 2009 06:59
I'm somewhat new to Dark GDK and I sure somewhere this was asked before but search as I will I could not find it. Anyway when I use the dbRoateSprite function for a 2D game, it rotates the sprite on its upper left corner. This makes my sprites turn in a very awkward manner. What I want to do is have it rotate on its center instead so when I move it from one point to another it will simply turn to face its destination before moving. Any help would be greatly appreciated.
Phosphoer
16
Years of Service
User Offline
Joined: 8th Dec 2007
Location: Seattle
Posted: 13th Jul 2009 09:07
Use dbOffsetSprite to offset the center of rotation.

Login to post a reply

Server time is: 2024-11-25 06:50:11
Your offset time is: 2024-11-25 06:50:11