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 / change Sprite Angle Guide

Author
Message
Behdadsoft
15
Years of Service
User Offline
Joined: 7th Apr 2009
Location: Tehran-Iran
Posted: 17th Jul 2015 18:18
Hi.

I wrote this code for change sprite Angle(Y) with mouse, but when i move then mouse to the up, my sprite angle change to down.

this is my code:



Please Guide Me.

Thanks.
JSR $FFD2
9
Years of Service
User Offline
Joined: 16th May 2015
Location: Sweden
Posted: 25th Jul 2015 17:29
Hello
I'm not quite sure what you want to accomplish,
but here is my code where I have assumed that you want to rotate your sprite
around its own axis, while moving the mouse around ?? !!

Login to post a reply

Server time is: 2024-11-25 19:35:56
Your offset time is: 2024-11-25 19:35:56