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 / centered rotation with sprites ?

Author
Message
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 5th Jun 2007 00:48
does anyone know any god code for centered rotation of sprites?
iam using an sprite for my mini map marking where the camera is viewing.
but 2d coding aint my strong side
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 5th Jun 2007 02:50 Edited at: 5th Jun 2007 02:50
Do you mean you want to rotate a sprite around its centre?

If so, just use the OFFSET SPRITE command;



Boo!
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 6th Jun 2007 15:48
thanks spooky it worked like an charm when + the sprite width(s)/2 also on the position afterwards .
cheers

Login to post a reply

Server time is: 2024-11-25 17:28:08
Your offset time is: 2024-11-25 17:28:08