How to put an actor on top layer with code ?
hi everybody, i have a problem with my game.
in my game i have 3 actor that i can drag.
when i drag an actor i want that is on top/front of layer.
i want the actor to be on top from the auther but dont find the attribute to do that. Anyone knows ?
thank
excuse me for my bad english, i m french
in my game i have 3 actor that i can drag.
when i drag an actor i want that is on top/front of layer.
i want the actor to be on top from the auther but dont find the attribute to do that. Anyone knows ?
thank
excuse me for my bad english, i m french
![:) :)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/smile.png)
Comments
but i dont know if we can arrange layer inside the game.
anyone have clue bout this?
First on the actor that you want to trigger event
IF touch is pressed
Change attribute game.spawn TO true
Make a new actor - Make it transparent
Put this actor in the desired layer. with the following rule
IF attribute game.spawn is true
Put in Spawn behavior
Spawn what ever you want
iam sure tshirtbooth got a more elegant way of doing it.
but this will work in the meantime
i will try the solution of Brynjebams and i wait the video of Tshirtbooth:)
thanks.
i will try the solution of Brynjebams and i wait the video of Tshirtbooth:)
thanks.