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,107

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
65
S
39
G
24
Posts: 352
Reputation: 18,106

Post » Sun Sep 18, 2016 11:58 pm

Mmmm I like this answer.
B
46
S
16
G
79
Posts: 2,170
Reputation: 46,857

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
65
S
39
G
24
Posts: 352
Reputation: 18,106


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 41 guests