How do I make a big fall deadly?

Just started using Construct 2? Post your questions here

Post » Thu May 01, 2014 10:48 am

Hi, I'm new to Construct...

I want my player to die if he falls from more than one level.

How would I go about this?


Any help is gratefully appreciated...

Thanks, Dan.
B
3
Posts: 2
Reputation: 179

Post » Thu May 01, 2014 12:05 pm

You could make an instance variable, called falling for your platform object
Then
While falling - Add 1 to falling
On land - if(falling < number) Set falling to 0
- Else - kill ...
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,461

Post » Thu May 01, 2014 12:08 pm

Thanks, I don't want every fall to kill him though. Just over a certain height...

Would that add, keep adding up whilst he was in the air? (Sorry, not able to test at the moment).

Thanks again.
B
3
Posts: 2
Reputation: 179

Post » Thu May 01, 2014 7:42 pm

Change the number to the max fall height and yes
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,461


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests