Hello All,
I have two sprites (red and blue).
I start with 3 red sprites on the layout. When I click on a red sprite, I want it destroyed and a blue sprite to be spawned in its place and vice versa. I tried the following:
But I end up with all blue sprites. Once they are blue, they never go back to red. If I change the order of events, the opposite happens.
I am assuming that the "touch" event is being triggered for the newly spawned object. I am right? Is there a way to prevent that?
Many thanks for the help.