Noob question...
I have a feeling that the answer to this one is simple, I'm just not able to grasp it at the moment...
I have a simple layout with sprites of family "Heroes" created on a tiled background covering the center of the window leaving the sides bare.
What I want:
When a hero - sprite is dragged and dropped outside of the tiled background the dragged sprites boolean "Selected" should turn to true.
When a hero - sprite is dragged and dropped inside of the tiled background the dragged sprites boolean "Selected" should turn to false.
What I have:
When a hero - sprite is dragged and dropped outside of the tiled background, all Heroes boolean "Selected" turns to true.
When a hero - sprite is dragged and dropped inside of the tiled background, all Heroes boolean "Selected" turns to false.
I cannot refer to a specific sprite object as all the sprites are generated randomly from the Sprites in "Heroes" family.
I assume that this might even be solved by placing the action inside the correct event. I tried with several possibilities, but alas, fail every time...
Please, what is wrong?
Link to my CAPX:
dropbox.com/s/fnecrxap6gxqpqa/CutthroatCaverns.capx
The fun happens on the Village layout. Ignore the rest...
This CAPX has a pretty nice Debug system that shows the UID of the sprites and the "Selected" boolean value when it changes.
So experimenting should be easy...