Destroy an actor by touching another actor

GrubGamesGrubGames Member Posts: 77
edited November -1 in Working with GS (Mac)
What would be the best way to destroy an actor by touching another actor.? For example "x" when touch is pressed, destroy "y".

This sounds simple but I'm having some trouble with it.

Thanks

Comments

  • BarrytheBarrythe Member Posts: 82
    You can't reference or destroy one actor from within another. Probably best is to create a Game attribute, for example Z. Then in Actor X have a rule" When Pressed Set Game.Z to true". Then within actor Y have a rule"If Game.Z= true the destroy".

    Hope that makes sense.
  • HadiDaManHadiDaMan Member Posts: 115
    BarrytheBrave It does.

    (at least to me!)
  • GrubGamesGrubGames Member Posts: 77
    Makes sense thanks BarrytheBrave
  • BarrytheBarrythe Member Posts: 82
    Excellent news!
Sign In or Register to comment.