Destroy Platform When Collide

Discussion in 'How Can I...?' started by Forgive, May 8, 2019.

  1. Forgive

    Forgive Boxer

    Joined:
    Apr 16, 2019
    Messages:
    58
    Likes Received:
    4
    I want to destroy platform when character collides. In fact, there is solution on the internet but this solution is to change platform to enemy.

    https://www.buildbox.com/forum/inde...-on-collision-with-character.3371/#post-21002

    But I have a character in the game, Character should walk on it. If I make it enemy, then it successfully is destroyed but character can not move on it.

    As a result, changing preset to enemy is not a solution for me. How can I destroy object when its preset is PLATFORM?


    [​IMG]
     
  2. spicedbeangames

    spicedbeangames Miniboss Boxer

    Joined:
    Mar 31, 2016
    Messages:
    1,389
    Likes Received:
    596
    Try setting your platform type to Physics. Then set Collision type to collide/no destroy. Then add the Wake up node with Wake up set to Collision based/sleep - disabled.

    When your character jumps on this, it should fall away as destroyed
     
  3. Forgive

    Forgive Boxer

    Joined:
    Apr 16, 2019
    Messages:
    58
    Likes Received:
    4
    It is not destroyed, just falling. I do not like that, I just want to destroy it when character touch.
     
  4. spicedbeangames

    spicedbeangames Miniboss Boxer

    Joined:
    Mar 31, 2016
    Messages:
    1,389
    Likes Received:
    596
    Give it a defeat animation, so it fades, or does what you want it to do.
     
    Forgive likes this.
  5. Forgive

    Forgive Boxer

    Joined:
    Apr 16, 2019
    Messages:
    58
    Likes Received:
    4
    First of all, to work defeat animation it should be defeated. In fact my question is not about animation. I can not defat it because it is platform.

    Why?

    Because character should walk on it. I can not make it enemy, because if I make it enemy character can not walk on it.

    As a result my question is "How can I defeat PLATFORM without making it enemy?"
     

Share This Page