Falling damage without checking for ground

Get help using Construct 2

Post » Sat Apr 13, 2013 4:33 am

Hi,

I'm working on a mechanic where the player character and enemies will take falling damage depending on the height they jump from.

However, there are some issues with my current result.

It only works after the platform falls and triggers the code once. It does not set the speed value to 0 in the beginning, instead it needs to fall once, in order to work as normal.

Secondly, even if it may work some times, it just doesn't at about 10% of the time, in my original project. In this capx, it seems to be more frequent. Not only that, the damage doesn't trigger if the player's is especially moving during the jump/fall, or at least that seems to be the case.

Any ideas as to what the causes may be?

This is what I have so far -

https://www.dropbox.com/s/6oq9spz8k063gba/falling%20damage.capx

Thanks!Fynnick2013-04-13 05:53:25
B
3
Posts: 12
Reputation: 499

Post » Sat Apr 13, 2013 10:50 am

Bump.
B
3
Posts: 12
Reputation: 499

Post » Sat Apr 13, 2013 11:07 am

hi

reset your variable damagedone to 0 in your event 2 where it check for damagedone = 1 or it will always set lastmaxspeed to 0
B
12
S
3
G
4
Posts: 63
Reputation: 3,410


Return to How do I....?

Who is online

Users browsing this forum: blackhornet, makkancs, TiagoCesar and 17 guests