Remove when collision is too high

How do i remove an object when it collides with something and the force of the collision is too high, so an example would be like angry birds when the bird hits the box to hard, it gets destroyed. I already tried if (event.force > 3) then removeSelf(). Thank you for any comments.

Check out Ghosts VS Monsters sample code :)

What's the problem you are facing with if event.force > 3 then ?

Peach :)

well it doesn't exactly work every time, sometimes it works sometimes it doesn't and it usually won't work when the side of the ship collides with something at a certain force.

Are you printing the force to ensure it's not working and the force isn't actually just < 3 ?

Try printing force on each collision to troubleshoot, depending on your setup perhaps 3 is too high.

Peach :)

views:1868 update:2012/1/3 13:02:13
corona forums © 2003-2011