Change Layer Question
Fal01
Member Posts: 460
Hi all,
Is it possible to make the touched player always be on top?
I have 2 pictures that enlarge when they are touched, the problem is that when enlarged one is always behind the other.
Any help much appreciated.
Is it possible to make the touched player always be on top?
I have 2 pictures that enlarge when they are touched, the problem is that when enlarged one is always behind the other.
Any help much appreciated.
It’s not a bug – it’s an undocumented feature
Best Answers
-
gyroscope I am here.Posts: 6,598
Hi @Fal01 to date, there's no control over layer order by behaviours or rules, except in the Spawn Actor behaviour, as you know (Layer order: in front of actor, in back of actor, front of layer, back of layer).
So the only workarounds at this time is to destroy an actor and respawn at the top of the layer; or, swap with a duplicate actor higher in the layer, which can sometimes help in some situations.
There's a third workaround which might help in this situation too (if all your actors are the same size): have a blank actor on-screen but outside of the visible screen area, top of layer. When you click on a picture, change image in the spare, and swap it's position with the one you're touching, swap back on release.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Answers
I think the spawn and destroy method will probably be best for this one.
It’s not a bug – it’s an undocumented feature