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 / Rotating a sprite

Author
Message
DevoureD
21
Years of Service
User Offline
Joined: 24th May 2003
Location:
Posted: 24th May 2003 23:53
Ok, is there a way in DBpro, to rotate the sprite by it's center and not the top left corner. I am sure i could write a little code that will rotate and move but i was hoping for a "pre-built" method. Seeing how this is the first day I have used DBpro (lite demo at that) but i am sure I will be selling all my old baseball cards so I can afford a copy ... any takers?

Check back Sunday

DevoureD
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 24th May 2003 23:57
There sure is. Use the OFFSET SPRITE command to move the positioning/rotation point of the sprite.

For the centre, I use:

OFFSET SPRITE x,SPRITE WIDTH(x)/2,SPRITE HEIGHT(x)/2

where x is the number of your sprite.
DevoureD
21
Years of Service
User Offline
Joined: 24th May 2003
Location:
Posted: 25th May 2003 00:13
Thank you.. I was just reading about that when i thought about checking back here for more information on it.. and saw a reply to my post already. now, on to the $99 issue on hand

Login to post a reply

Server time is: 2024-11-24 14:59:31
Your offset time is: 2024-11-24 14:59:31