changing scenes

deej011deej011 Member Posts: 159
edited December 2011 in Working with GS (Mac)
hi,
how would i make an actor go to a different scene than be able to go back to the previous scene and be in the position where the actor left the scene?

cheers

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited December 2011
    You would need some game real attributes lets call them Scene1X and Scene1Y.

    When you leave the scene change these for the X and Y of your actor (change attribute game.Scene1X to self.position.X (do the same for Y) and its a good idea to have an actor that controls all this in every scene (i usually make a controller actor and position it off screen) that changes self.position.X to game.Scene1X then when you re-enter the scenes the actor will be in the same place as it was before it left.

    Darren.

    GS Xmas Bundles and 5 New Templates
  • deej011deej011 Member Posts: 159
    hi thanks for the reply i am still having difficulties would you be able to break it down any more for me cause i tried like u said but didnt seem to work so i must be missing something

    thanks
  • deej011deej011 Member Posts: 159
    Nevermind I seemed to have worked it out so would you have a sceneX and sceneY real attribute for every scene I want it to remember where I left?
  • UtopianGamesUtopianGames Member Posts: 5,692
    edited December 2011
    Just made a quick video for you that should help...

    Note i unlocked the forward and back actors in the scene to access the current.scene.layers.hero X & Y but there's a few other ways to do it depending what your set up is.



    Darren.
  • deej011deej011 Member Posts: 159
    thanks heaps for that. thats pretty much the way i did it but a bit messier haha accept my actor goes into a door so i had to minus 10 from self position y so that when i went back into the scene i didn't keep landing on the door

    cheers
Sign In or Register to comment.