Destroying an object by jumping on it

  • Hello everyone,

    I want to destroy an object when the player is jumping on it. But only when he is jumping. At the moment, the object is also affected when the player walks on it. I hope it's understandable.

    Someone else said:

    [quote:3kw9x9mh]Couldn't you do that with actionpoints, so you have 1 on top and 1 on the bottom, and when it comes in contact with action point 2 it destroys..? i dunno really just throwing an idea your way.

    But this way I'll have an action point for every object I want to destroy this way. Is there a better way to do this?

    Can you guys help me, please?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • player on collision with enemy

    (Sub event)---------player is falling

    (Sub event)---------player.Y < enemy.Y ------------ enemy destroy

    Else---------player destroy

  • Thanks A0Nasser but I don't want to destroy an enemy like in Super Mario.

    Please take a look at this screenshot.

    dl.dropboxusercontent.com/u/2935685/construct%202/Unbenannt.jpg

    It works ....well.. not really

    When the player walks on the object 'break', it get's almost instantly destroyed.

    I hope someone can help me out here. I'm stuck.

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