hi,
i try to done something simple but i fail
i would like to done this
on every touch ... the circle rotate at angle 45degree quickly but not like the "rotate toward or clockwise" do (it rotate direclt and we dont see that is rotate)
thanks a lot
Develop games in your browser. Powerful, performant & highly capable.
So you want the rotation to animate?
Like this? Click on the sprite to rotate 45 degrees.
Online Demo
https://dl.dropboxusercontent.com/u/100 ... index.html
Here is the CapX
https://dl.dropboxusercontent.com/u/100 ... otate.capx
Made this simply by giving the sprite the rotation behaviour and set the rotation speed to 0
Then the events:
on sprite clicked > set rotation speed to 45 > wait 1sek > set rotation speed to 0
And that makes it rotate 45 degrees in 1sek every time clicked. You can of course set any speed you want.
But there are many other ways of doing this. This is just one of them and pretty simple.