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
74
S
42
G
24
Posts: 361
Reputation: 18,649

Post » Sun Sep 18, 2016 11:58 pm

Mmmm I like this answer.
B
48
S
19
G
87
Posts: 2,316
Reputation: 51,516

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
31
S
15
G
22
Posts: 185
Reputation: 14,250

Post » Mon Sep 19, 2016 6:07 am

plinkie wrote:Mmmm I like this answer.


Mighty kind of you @plinkie :)
B
74
S
42
G
24
Posts: 361
Reputation: 18,649


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests