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.

DarkBASIC Professional Discussion / sprite center of rotation

Author
Message
UberTuba
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Brittania
Posted: 2nd Feb 2003 14:04
does anyone know kow to change the sprite ceter of rotation
from the top right hand corner?
Life is a terminal disease.
You never survive it.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 2nd Feb 2003 15:05
Sure, just use the offset sprite command.

For example, if your sprite is displaying a 64x64 image, use 'offset sprite s,32,32' to centre the sprite.

Note that this also affects it's draw position on screen.

Login to post a reply

Server time is: 2025-05-17 14:23:41
Your offset time is: 2025-05-17 14:23:41