Make a Game.attribute - boolean - call it "actor in front" You gonna need to have 2 different actors (basically they are the same actor duplicated).. In 1 of them (the back one) , when "Game.actor in front" IS false Put all your rules here Otherwise change self X Y to -100
In the second one (the front one), when "Game.actor in front" IS true Put all your rules here Otherwise change self X Y to -100
Then put your "front one" in an upper layer , and the "back one" in a lower layer..
Now you gonna have to swap them accordingly to your game conditions ..
Comments
You gonna need to have 2 different actors (basically they are the same actor duplicated)..
In 1 of them (the back one) ,
when "Game.actor in front" IS false
Put all your rules here
Otherwise
change self X Y to -100
In the second one (the front one),
when "Game.actor in front" IS true
Put all your rules here
Otherwise
change self X Y to -100
Then put your "front one" in an upper layer , and the "back one" in a lower layer..
Now you gonna have to swap them accordingly to your game conditions ..
http://www.deepblueapps.com/Deep_Blue_Ideas_Ltd./GSTemplateFR_LAY.html
Darren.
GS Templates
GS Tools
Art Packs
Music Packs