Twin Actors linked to Enemy Actor scenario
Hello
I'm working on a new app where the hero has potions that appear in a group on both the left and right and side of the screen (At the bottom).
I have created demon orbs from a spawner that is off the bottom of the screen...it happily kicks out different orbs up the screen and this part works fine.
My question is...
How do I set it up so that a potion bottle actor on either side of the screen (Depending on what choice the player chooses), when that certain colour potion is tapped by the player...how do I get it to destroy a certain coloured orb actor that is on screen?.
Example
There is a blue, orange, yellow and red orb on screen.
The player presses the blue potion bottle, say on the right of the screen to destroy the blue orb.
How do i get this to work, so it only destroys the blue orb.
Also there will be a scenario where there could be 3 blue orbs on screen and the player has to tap the blue potion bottle 3 times to hit each one (I do not want it so on blue potion press destroys ALL the blue orbs on screen)
How would I do this.
My actors are...
Red Orb
Blue Orb
Yellow Orb
Green Orb
Orange Orb
Purple Orb
Red Potion Bottle
Blue Potion Bottle
Yellow Potion Bottle
Green Potion Bottle
Orange Potion Bottle
Purple Potion Bottle
Sorry about this question...its been driving me mad for ages.
Any help would be greatly apprciated.
I'm working on a new app where the hero has potions that appear in a group on both the left and right and side of the screen (At the bottom).
I have created demon orbs from a spawner that is off the bottom of the screen...it happily kicks out different orbs up the screen and this part works fine.
My question is...
How do I set it up so that a potion bottle actor on either side of the screen (Depending on what choice the player chooses), when that certain colour potion is tapped by the player...how do I get it to destroy a certain coloured orb actor that is on screen?.
Example
There is a blue, orange, yellow and red orb on screen.
The player presses the blue potion bottle, say on the right of the screen to destroy the blue orb.
How do i get this to work, so it only destroys the blue orb.
Also there will be a scenario where there could be 3 blue orbs on screen and the player has to tap the blue potion bottle 3 times to hit each one (I do not want it so on blue potion press destroys ALL the blue orbs on screen)
How would I do this.
My actors are...
Red Orb
Blue Orb
Yellow Orb
Green Orb
Orange Orb
Purple Orb
Red Potion Bottle
Blue Potion Bottle
Yellow Potion Bottle
Green Potion Bottle
Orange Potion Bottle
Purple Potion Bottle
Sorry about this question...its been driving me mad for ages.
Any help would be greatly apprciated.
It takes a Zombie to know a Zombie!!!