**On Touch Pressed, Send to Front?**
ShineHouseGames
Member, PRO Posts: 100
Is that doable? Couldn't seem to find that formatting within the self.attributes.
Any way for an actor to be above another actor when dragged, but behind when released? This is probably very simple..?
Any way for an actor to be above another actor when dragged, but behind when released? This is probably very simple..?
Comments
I am bad at helping.. but I'm going to try...
You could create 2 versions of the actor one in the top layer and another behind it like you want. Then constrain the position of the actors together so that when they move, they move in unison. Now to give the illusion of moving to the top layer you can set the alpha to zero on the top layer actor when touch is not pressed (this will make it invisible), then set the alpha of the top actor to 1 (makes it visible) when touch is pressed. This can be done through the actors self.interpolate color options.... That should get the look you are going for.
Hopefully this helps a little.