When this actor is destroyed, destroy that actor.

GoldensnypaGoldensnypa Member Posts: 32
edited November -1 in Working with GS (Mac)
So I have two actors, box 1 and box 2. They're 20 pixels apart from each other. Box 1 is destroyed when clicked on. What I want is, when box 1 is destroyed, destroy box 2. What is the easiest and smoothest way on doing this? Thank you for your time.
Samer

Comments

  • icanmakeicanmake Member Posts: 466
    using attributes. when game.box1destroyed is true, destroy box2.
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Why do you want it so when you touch box 1, it destroys box 2? ;)

    You might have to make it so when: Box 1 is touched, box 2 goes invisible, and maybe moves out of the screen so the player doesnt collide with it. :) That might work.
  • GoldensnypaGoldensnypa Member Posts: 32
    I know how to do this, but I just wanted to know what the smoothest way there is because of the number of ways this could be done. Thank you for your replies.
Sign In or Register to comment.