How to detect that my sprite is rotating CW or CCW?

Get help using Construct 2

Post » Sun Mar 01, 2015 1:13 pm

How to detect that my sprite is rotating CW or CCW?
B
10
S
5
Posts: 220
Reputation: 1,464

Post » Sun Mar 01, 2015 1:22 pm

Use 2 variables and compare them.

When you need to check it, set the current Angle to variable 1, wait 0.1 set angle to variable 2, check if its bigger or smaller.
Frosty Elk AB
www.frostyelk.se
Have no fear, We come in peace!
B
13
S
3
G
1
Posts: 106
Reputation: 1,169

Post » Sun Mar 01, 2015 1:34 pm

Use System condition "Is clockwise from".

https://www.scirra.com/manual/124/system-conditions
Image
B
15
S
7
Posts: 126
Reputation: 1,835

Post » Sun Mar 01, 2015 1:56 pm

Ok I combine both suggestion, but the problem with is clockwise from, is when the angle is the same, it is considered clockwise.
B
10
S
5
Posts: 220
Reputation: 1,464


Return to How do I....?

Who is online

Users browsing this forum: Alex Bryant, Congrats2u, Moordhuis, omnipaws, tarek2 and 11 guests