How to make object fall certain distance and collide die

Get help using Construct 2

Post » Thu Mar 26, 2015 10:21 pm

Hello.! How can I make an object fall and after certain distance and collide with floor it change image? For example a egg fall to the floor and it crak after certain highness thanks in advance
B
5
Posts: 26
Reputation: 548

Post » Fri Mar 27, 2015 5:02 am

try to use distance() expression
"If you want to move a mountain tomorrow, you should start by lifting stones today."
B
63
S
14
G
2
Posts: 291
Reputation: 6,641

Post » Fri Mar 27, 2015 2:29 pm

You could also try something like,
On Fall - every tick add 1 to FallHeight Global variable.
On Landed, if FallHeight >= (height you want to change state) - Change state.

Something like that might work.
Be sure to check out my Metroidvania game, A Hole in the Earth
B
59
S
24
G
3
Posts: 359
Reputation: 5,683

Post » Sat Mar 28, 2015 4:28 pm

Thank you all.! I will try it if it work
B
5
Posts: 26
Reputation: 548


Return to How do I....?

Who is online

Users browsing this forum: BadMario, ChoosyZerk, Yahoo [Bot] and 46 guests