Explode Parts Node

Discussion in 'Buildbox 3.0' started by NeedSomeHelp, Sep 3, 2019.

  1. NeedSomeHelp

    NeedSomeHelp Boxer

    Joined:
    Dec 4, 2018
    Messages:
    69
    Likes Received:
    5
    Does anyone have an Explodes Part Node for my character? Thx
     
  2. PunkPuffin

    PunkPuffin Avid Boxer

    Joined:
    Sep 27, 2018
    Messages:
    285
    Likes Received:
    195
    What do you mean? There is a smart asset for exploding
     
  3. NeedSomeHelp

    NeedSomeHelp Boxer

    Joined:
    Dec 4, 2018
    Messages:
    69
    Likes Received:
    5
    so when my character hits an enemy the character should explode in parts and the game over ui should pop up. Now if I use the explode Node from the "exploding cube asset" it doesnt work, because it never changes to the game over UI
     
  4. PunkPuffin

    PunkPuffin Avid Boxer

    Joined:
    Sep 27, 2018
    Messages:
    285
    Likes Received:
    195
    That will probably be because the Explode Parts node has this line of code in it

    Code:
    this.entity().remove();
    So it removes the object before it ever fires the Game Over.

    Remove the line of code and give it a go
     
    NeedSomeHelp likes this.
  5. NeedSomeHelp

    NeedSomeHelp Boxer

    Joined:
    Dec 4, 2018
    Messages:
    69
    Likes Received:
    5
    Thanks! Looks like that worked
     
    PunkPuffin likes this.
  6. NeedSomeHelp

    NeedSomeHelp Boxer

    Joined:
    Dec 4, 2018
    Messages:
    69
    Likes Received:
    5
    @PunkPuffin If i want to change the debris Asset I get the error: "type error: pp is null" Do you know by chance why?
     
  7. PunkPuffin

    PunkPuffin Avid Boxer

    Joined:
    Sep 27, 2018
    Messages:
    285
    Likes Received:
    195
    Your debris asset is probably missing the Part node
     
  8. NeedSomeHelp

    NeedSomeHelp Boxer

    Joined:
    Dec 4, 2018
    Messages:
    69
    Likes Received:
    5
    @PunkPuffin Im sorry to ask so many questions :) but how can I add that? thank you
     
  9. PunkPuffin

    PunkPuffin Avid Boxer

    Joined:
    Sep 27, 2018
    Messages:
    285
    Likes Received:
    195
    When you added the explosion Smart Asset it should have added the part asset too. In there just copy the Part Node to your asset
     

Share This Page