Destroy just one actor out of a group of 10

Player_EPlayer_E Member, PRO Posts: 604
edited November -1 in Working with GS (Mac)
Example:
I made an actor called actor A.
I have an area where copies of actor A randomly spawn every second.
I want to make it so when I click on a single actor A, the actor that I click on is destroyed.
I have tried a few ways to accomplish this, but when ever I click just one actor A all actor A's on the screen are destroyed.

I had an idea to make actor B spawn where I click the mouse and have a rule where actor A and B collide destroy Actor A.

I cannot seem to figure out how to spawn an actor where I click the mouse. If this is possible please let me know. If not please post a solution to my problem.

Thanks

Comments

  • Player_EPlayer_E Member, PRO Posts: 604
    Hey tshirt. when i download the file a chess game opens up..? lol dont know whats up with that
  • alexxxhpalexxxhp Member Posts: 161
    rename it to zip extension then open it up
  • Player_EPlayer_E Member, PRO Posts: 604
    Im not that computer savvy so could you just post exactly what I should save the file as? ahah
    Thanks
  • alexxxhpalexxxhp Member Posts: 161
    rename it what ever you want and say demo.zip then just open it it will decompress with the project file
  • Player_EPlayer_E Member, PRO Posts: 604
    I right click on the download file (like the description says) then i got to download linked file as... what exactly should I save it as so i do not get the chess game
  • alexxxhpalexxxhp Member Posts: 161
    download the chess file then on your computer rename it example name it demo.zip then double click that.
  • Player_EPlayer_E Member, PRO Posts: 604
    I download it to my desktop as demo.zip and when I open it I still get a chess game.
    any thoughts
  • alexxxhpalexxxhp Member Posts: 161
    the end of it will say something like .game just change the name .game to .zip
  • Player_EPlayer_E Member, PRO Posts: 604
    Just tried that and I still get a chess game uhhh.
    Would it be easier for some one to just explain my original question lol
  • alexxxhpalexxxhp Member Posts: 161
    rename it after you download it not before
  • Player_EPlayer_E Member, PRO Posts: 604
    Oh man I dont know how that worked, but thanks for hanging with me man lol
  • alexxxhpalexxxhp Member Posts: 161
    no prob
  • Player_EPlayer_E Member, PRO Posts: 604
    Okay just looked through it and put it into my game.

    I changed the touch is pressed to mouse is down.
    when I click the actor all instances of the actor are still destroyed.
    Does this only work with the touch function.
    just curious
  • firemaplegamesfiremaplegames Member Posts: 3,211
    You need to add a condition to the Rule where your Mouse Down function is...
    To do that, click the little plus sign after the Mouse is DOWN condition so your Rule ends up like this:

    Rule
    When MOUSE is DOWN
    When MOUSE is INSIDE
    Destroy

    Right now, if you click anywhere on the screen, it will destroy everybody.
    Your just need to add that condition.

    Hope this helps!
    Joe
Sign In or Register to comment.