can I detect when a platform movement is falling

For questions about using Classic.

Post » Thu Jun 05, 2008 5:55 am

I only see "is moving"

Can I specifically check for wheteher or not a sprite set as platformer movement is falling, jumping, or x velocity for that mattter?

thanks.
B
2
S
2
G
4
Posts: 124
Reputation: 1,698

Post » Thu Jun 05, 2008 2:18 pm

Use the 'X/Y component of movement" in the Platform movement's expressions, eg:

Sprite[Platform].VectorY

This value is positive when the player is falling, and negative when jumping.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Thu Jun 05, 2008 11:39 pm

Thanks much. works great :) I'm starting to get the hang of this....
B
2
S
2
G
4
Posts: 124
Reputation: 1,698


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests