Don't make actor reappear on scene reset

Mayhem_MadnessMayhem_Madness Member, PRO Posts: 168

Hi everyone, i have an actor that when collides with another actor the first actor gets destroyed.
So i wanted to know how to make that actor not reappear when the scene is reset.

Thankyou.

Thor.

Comments

  • RabidParrotRabidParrot Formally RabidParrot. Member Posts: 956

    @Thor

    Make an attribute called "Dead"

    Before the colliding actor destroys change "Dead" to true

    Tell the actor that when dead is true it should destroy.

    Reset Scene

    Actor will self destruct.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    You'll need to store the value of the "dead" boolean in either a game attribute or a table cell since those two places do not get reset when you use a Reset Scene behavior.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • RabidParrotRabidParrot Formally RabidParrot. Member Posts: 956

    @tatiang said:
    You'll need to store the value of the "dead" boolean in either a game attribute or a table cell since those two places do not get reset when you use a Reset Scene behavior.

    Thanks, I should have specified...

  • Mayhem_MadnessMayhem_Madness Member, PRO Posts: 168

    @RabidParrot said:
    Thor

    Make an attribute called "Dead"

    Before the colliding actor destroys change "Dead" to true

    Tell the actor that when dead is true it should destroy.

    Reset Scene

    Actor will self destruct.

    @tatiang said:
    You'll need to store the value of the "dead" boolean in either a game attribute or a table cell since those two places do not get reset when you use a Reset Scene behaviour.

    When the second actor collides with a completely different actor thats when the scene resets, so would i need to do anything for that?

    Thanks.

    Thor.

Sign In or Register to comment.