Change actor layer

titostitos Member Posts: 41
edited March 2012 in Working with GS (Mac)
I want a actor (a) to go in front another (b) after I click on (b), a simple change of layers.
Thanks

Comments

  • POMPOM Member Posts: 2,599
    edited March 2012
    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 ..

    Photobucket Roy
Sign In or Register to comment.