when I click the actor all actors of that type disapear????

gib284gib284 Member Posts: 29
edited November -1 in Working with GS (Mac)
Is there a way to make it so that when I click an actor to destroy it all the actors of that type dont also get destroyed? or do I have to create separate actors for each bad guy? thanks! =)

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    you can make a attribute called destroy. Set it to 0. When the first actor is destroyed change attribute to 1. Then have rules in all the other actors when attribute destroyed =1 destroy actor
  • gib284gib284 Member Posts: 29
    ok so i created an attribute called destroy and created a rule when destroy=1 destroy actor and then I created a rule when mouse position is inside actor badie (my bad guy) set attribute destroy=1 so it works but I have 5 different badies in my game and they all get destroyed when the mouse is inside any of them.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    thats how you wanted it right? for the ones you dont want to get destroyed just take out the destroy rule
Sign In or Register to comment.