All actors are destroyed?
mightybob
Member Posts: 6
Hi, I have a problem.I have a background actor that spawns Enemy actors at set intervals. When I click an Enemy actor, I play a sound and it is destroyed. Simple. However, if two or more Enemy actors have been spawned, they are ALL destroyed, not just the one I clicked?
What gives?
Hope you guys can help me!
/Bob
What gives?
Hope you guys can help me!
/Bob
Comments
I'm simply using a WHEN CLICKED rule, then playing a sound and then Destroying the actor.
I managed to solve the problem. I had the actor listening for ONKEYDOWN (which listens to a pressed key in general), and not for TOUCH (which then listens for a click on the specific actor).
Changing to TOUCH solved it.
Just figured someone else would benefit from this.
/Bob