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 / Setting a sprite to the rotation of "down"?

Author
Message
prasoc
16
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 12th Mar 2009 22:25
If I wanted to rotate a sprite to the same direction as it started any which way the camera is rolled, how would you do it?

I have got it to work one way round:



but when you turn the camera around (rolling it), it is inverted ???
Nithead
15
Years of Service
User Offline
Joined: 9th Mar 2009
Location: Hampshire, England
Posted: 13th Mar 2009 08:59
I'm not entirely sure what you mean but i would try:

dbRotateSprite(2, (dbCameraAngleZ() * -1));

True geeks live forever, or die trying.

Login to post a reply

Server time is: 2024-11-25 17:40:53
Your offset time is: 2024-11-25 17:40:53