Destroy just one actor out of a group of 10
Player_E
Member, PRO Posts: 604
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
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
Thanks
any thoughts
Would it be easier for some one to just explain my original question lol
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
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