How can I move an actor to the FRONT on touch? Is this possible?
I would like to know if it is possible to move an actor to the "front" of all other objects within the scene when they are touched. There would be 4-10 actors per scene and this needs to happen to any of these actors as they are touched, so Actor 1 would move to the front on touch and then Actor 2 would move in front of Actor 1 when touched, etc, etc. Is this possible?
Thanks!
Thanks!
Comments
The Front one is With color Alpha 0.
when you touch it, you change a variable to let the front now that there is a touch, and change colour alpha of the front actor to 1.
Cheers-
if that doesnt work do the same thing but instead of spawn the same actor in front spawn a duplicate actor same image different name at touch x and y
Here is what I did. I created a duplicate of the actors and then matched their position on the screen. I then changed the Color Alpha attribute to 0 and create a rule to change Color Attribute to 1 on touch and then created and "otherwise" rule to change it back to 0. This allows the touched actor to appear on top always no matter how many times you touch the multiple actors. Everyone that again for your input. The Force is Strong in all of you!