Compare Angle

Get help using Construct 2

Post » Mon Nov 28, 2016 1:00 pm

Hello Construct Friends :
I'm in the middle of new a new project but i have a little problem and i hope someone can help me
i will try to simplify it to make it easy understand my request
i added and made it rotate every click on it about 45 degree each click ( yet its fine )
i want the system to detect the angle of this sprite if it go back to its original angel ( 0 )
and destroy it
the system gives me 3 options
is between angles
is within angle
is clockwise from

i want to tell system if the sprite angle is 0 ( it's original angle ) but it only want me to write 2 angles
i hope someone understood me :) thanks in advance
B
22
S
8
G
2
Posts: 78
Reputation: 2,701

Post » Mon Nov 28, 2016 4:50 pm

You can use the event "Compare two values" and compare if "Yourobjectname.Angle" = "0"

Image
B
12
S
7
G
4
Posts: 114
Reputation: 3,067


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, marc254, tarek2 and 19 guests