Buildbox 3 - Destroy Character And Create Again

Discussion in 'Buildbox 3.0' started by Maxi_dp4, Jan 12, 2019.

  1. Maxi_dp4

    Maxi_dp4 Boxer

    Joined:
    Aug 29, 2017
    Messages:
    35
    Likes Received:
    3
    Hello,

    I were able destroy the character (2D Game) but when I try spawn the character again is not working, I tried simulate player dead with this.entity().setPosition(1000, 1000, 0) but the collision mask is in the old position and the sprite too.

    Best,
    Maxi.
     
  2. weboha

    weboha Avid Boxer

    Joined:
    Aug 8, 2018
    Messages:
    239
    Likes Received:
    178
    you have add remove.
     

    Attached Files:

  3. Maxi_dp4

    Maxi_dp4 Boxer

    Joined:
    Aug 29, 2017
    Messages:
    35
    Likes Received:
    3
    I am using remove, but I can not spawn the player again (only can spawn other objects, no characters)
     
  4. Jesse O'Brien

    Jesse O'Brien Boxer

    Joined:
    Jan 15, 2020
    Messages:
    10
    Likes Received:
    0
    I'd love to know the answer to this. It would be great to be able to spawn a new character (perfect for power ups). Seems we can only spawn an object or an animation.
     
  5. Tars Tarkas

    Tars Tarkas Avid Boxer

    Joined:
    Jul 17, 2018
    Messages:
    303
    Likes Received:
    228
    I don't know why it's claimed here is not possible. I tried it and it's very possible, quite easy I might say.
    Check the attachment
     

    Attached Files:

    diamdiamubi likes this.
  6. Jesse O'Brien

    Jesse O'Brien Boxer

    Joined:
    Jan 15, 2020
    Messages:
    10
    Likes Received:
    0
    Thanks, this worked! Really grateful for that reference.
     

Share This Page