*** challenge: two actors, one press....HELP!!****
Hi,
I have a scene with multiple actors flying across the screen (being spawned from one side). All actors are on the same layer. The player can touch the actor to drag them (when touch is pressed and inside) but the problem i'm having is that I don't want the user to drag two actors if he touches them when they are overlapping on the screen. I only want the top actor to be dragged. I'm stumped on this right now because I believe the 'touch = pressed and inside' is getting triggered on the two actors are the same moment so I can't use a game level attribute to say 'actor-touched' . Have any ideas?? Thanks, i'm racking my brains on this and don't want to have to change the actor rules so that they collide....
I have a scene with multiple actors flying across the screen (being spawned from one side). All actors are on the same layer. The player can touch the actor to drag them (when touch is pressed and inside) but the problem i'm having is that I don't want the user to drag two actors if he touches them when they are overlapping on the screen. I only want the top actor to be dragged. I'm stumped on this right now because I believe the 'touch = pressed and inside' is getting triggered on the two actors are the same moment so I can't use a game level attribute to say 'actor-touched' . Have any ideas?? Thanks, i'm racking my brains on this and don't want to have to change the actor rules so that they collide....
Comments
Edit: The only problem is how to give each spawned actor it's own number... hmmmm?