Check platform moving angle as a condition?

Get help using Construct 2

Post » Sat Feb 07, 2015 3:32 pm

I see it's possible to use Platform.MovingAngle as an action, but I'd like to test the platform moving angle as a condition, but it isn't appearing in the sprite conditions. Any ideas?
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,248

Post » Sat Feb 07, 2015 3:41 pm

You can do System -> Compare two values -> player.Platform.MovingAngle to another value
B
12
S
7
G
7
Posts: 450
Reputation: 4,276

Post » Sat Feb 07, 2015 5:45 pm

Coin-coin le Canapin wrote:You can do System -> Compare two values -> player.Platform.MovingAngle to another value


Ahh, THAT'S how to do expressions, thanks so much! :D
B
41
S
12
G
14
Posts: 1,117
Reputation: 11,248

Post » Sat Feb 07, 2015 6:06 pm

oh, by the way, System conditions don't pick instances. But I assume you only have 1 player object at any time so it should not be a problem for this situation.

What is platform.MovingAngle? are you referring to angle of gravity of platform behavior?
B
16
S
7
Posts: 301
Reputation: 2,726

Post » Sat Feb 07, 2015 6:19 pm

MovingAngle
Get the current angle of motion (which can be different to the object's angle), in degrees.

https://www.scirra.com/manual/87/8-direction
B
12
S
7
G
7
Posts: 450
Reputation: 4,276


Return to How do I....?

Who is online

Users browsing this forum: SantasProject, tarek2 and 8 guests