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 / Rotating a sprite around the center instead of the tip

Author
Message
jontepd
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location: Sweden
Posted: 20th Nov 2009 10:35 Edited at: 20th Nov 2009 10:43
Edit: Found the answer after using the search function


I have a problem in the asteroids game I'm making. I'm using the dbRotateSprite command to rotate my spaceship using the arrow keys. The problem is that the spaceship is rotated around the tip of the spaceship instead of around the center of the spaceship, making it look very weird.

Is there any way to fix this?

If I did not explain my problem thoroughly enough I can post a picture describing the problem.

Thanks in advance![b][/b]
puppyofkosh
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 20th Nov 2009 21:57 Edited at: 20th Nov 2009 21:57
Use

Login to post a reply

Server time is: 2024-10-01 18:37:19
Your offset time is: 2024-10-01 18:37:19