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.

AppGameKit Classic Chat / Rotate wheel

Author
Message
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 27th Nov 2014 22:55 Edited at: 27th Nov 2014 23:32
Hi.

I want when Press left or right key, my sprite rotate like wheel. how can do it?
Timshark
16
Years of Service
User Offline
Joined: 30th Jun 2007
Location: Oslo, Norway
Posted: 27th Nov 2014 23:05 Edited at: 28th Nov 2014 09:48


The "speed" variable name is not entirely correct. It should be called "AnglePoints" as it tells your program to add or subtract the given angle points to the angle of your sprite. But in effect the sprite rotates faster/slower with a higher/lower number. To get more precision it could also be changed to a float: Speed#=10.0

I never want what I know.
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 27th Nov 2014 23:32
Thanks Timshark

Login to post a reply

Server time is: 2024-04-25 17:16:27
Your offset time is: 2024-04-25 17:16:27