How do I test if player falls a certain distance

Get help using Construct 2

Post » Sun Sep 18, 2016 11:16 pm

How can i test if my player has fallen a certain distance so i can play a dying animation?

Thanks for any help.
B
38
S
18
G
19
Posts: 664
Reputation: 14,112

Post » Sun Sep 18, 2016 11:43 pm

You could always try setting a timer that would be triggered by the player platform's "is falling" condition. If the timer gets up to a certain number, you set the death animation to play. If the player is on the ground, set the timer to 0.
B
71
S
41
G
24
Posts: 356
Reputation: 18,464

Post » Sun Sep 18, 2016 11:58 pm

Mmmm I like this answer.
B
47
S
18
G
84
Posts: 2,261
Reputation: 49,776

Post » Mon Sep 19, 2016 2:40 am

Here's a capx example of another similar way. Found it searching the forums a while back.

https://www.dropbox.com/s/e40w0amynjfmd ... .capx?dl=0
B
30
S
15
G
22
Posts: 183
Reputation: 14,221

Post » Mon Sep 19, 2016 6:07 am

plinkie wrote:Mmmm I like this answer.


Mighty kind of you @plinkie :)
B
71
S
41
G
24
Posts: 356
Reputation: 18,464


Return to How do I....?

Who is online

Users browsing this forum: John Cutter and 7 guests

cron