How would you go about switching the touch focus from one object to another?
I'm building a circus based game where a clown is being shot out of a cannon. I got the shooting out of the cannon bit working, based on the first touch (click of mouse).
Now that the clown is airborne, I want to focus the touch action so everytime the player touches the screen, the clown will flap his hands and give him some "lift", based on a set amount of points. Every touch will decrease those points, until none is left and the clown crashes on the ground.
At the moment, whenever the touch option is enabled, a new clown get's generated and shot out of the cannon.
I've tried using "on Nth touch" but I don't think I'm getting it right.
Also, in order to keep things neat, how would you use Groups for this?
I'm thinking of using one Group for the cannon function, and one Group for the clown flying function.
Any ideas on how to solve this?
Cheers.