How do I make circle rotate once ?

Get help using Construct 2

Post » Sun May 10, 2015 7:07 pm

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
B
46
S
16
G
8
Posts: 794
Reputation: 8,335

Post » Sun May 10, 2015 7:11 pm

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.
B
55
S
24
G
13
Posts: 767
Reputation: 12,575


Return to How do I....?

Who is online

Users browsing this forum: ametueraspirant, dand, mickclarke and 28 guests