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
54
S
32
G
23
Posts: 333
Reputation: 16,591

Post » Sun Sep 18, 2016 11:58 pm

Mmmm I like this answer.
B
45
S
15
G
73
Posts: 2,000
Reputation: 43,382

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
28
S
14
G
21
Posts: 179
Reputation: 13,548

Post » Mon Sep 19, 2016 6:07 am

plinkie wrote:Mmmm I like this answer.


Mighty kind of you @plinkie :)
B
54
S
32
G
23
Posts: 333
Reputation: 16,591


Return to How do I....?

Who is online

Users browsing this forum: Apollo14, MaujDeveloper, totoe and 5 guests