How do i destroy at certain speeds/distance

Get help using Construct 2

Post » Fri Jun 28, 2013 8:58 pm

Hi,Im new to game development & from the VFX & animation side. Just trying out Construct 2.

How do i destroy a object falling down at certain speeds/distance from the ground . Like a Ice cube falling to the ground.
B
2
Posts: 2
Reputation: 154

Post » Fri Jun 28, 2013 10:06 pm

I haven't actually tried this but looking how I'd go about trying to solve it, I'd give the object a movement behavior, bullet might work.
Bullet then has event options that allow you to "compare distance traveled" and or "compare speed", set values for those and trigger a destroy action.

Like I say, I haven't tried this but I think that would work if you set the bullet speed to 0 initially and set it's angle to 90.

Edit: Just tried it and it works fine!
You might need to change "compare distance traveled" to get a distance from the floor depending on how you want it to work.Zantium2013-06-28 22:13:58
B
14
S
3
G
2
Posts: 59
Reputation: 2,180

Post » Sat Jun 29, 2013 7:17 pm

Thanks for the reply Zantium, will try it out. New to the code stuff.
B
2
Posts: 2
Reputation: 154


Return to How do I....?

Who is online

Users browsing this forum: zenox98 and 29 guests