Physics - destroy when item crashes to a stop

0 favourites
  • 3 posts
From the Asset Store
350 high quality sound effects, suitable for casual and mobile games.
  • I have an item that I want to destroy when it crashes to the ground. It however must not die on contact with the object that is between it and the ground. Because of this I can not use collisions. I have unsuccessfully tried the following:

    Given the object a Boolean variable called "Falling" and set this to false.

    In the event sheet I then do the following:

    Test If the velocity of the item is > 1 then set "Falling" to true.

    Test if falling and velocity is = 0 then destroy object.

    I have tried this on the sprite in the "Template-PhysicsCatapult" but it doesn't work

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You could test for the items Y position. If item1.Y is greater than or less than item2.Y or test if the two items are overlapping each other.

  • Just make a "On collision with object" : "Destroy" code, and enter the ground object. You cannot have the same object for the ground and the other object, but you can copy the one you have and rename it ground.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)