Saving and Loading a character’s position within a scene.

robertkdalerobertkdale USAMember Posts: 912
edited August 2012 in Working with GS (Mac)
Hello, In brief I have a question that I would like to respectfully ask.

To begin, I am developing a horizontal scrolling game and would like to save the characters position in a scene once a player leaves the scene.

Additionally I want the character to appear in the last saved position once the scene is played again.

In truth I understand the save and load functions in GameSalad but have been unable to either save or load the players X position every time I open and leave the scene.

Also I have been attempting to Auto Save and load the Character’s position but the actor always starts at the beginning of the scene.

I would greatly appreciate it if anyone could offer some helpful tips as I am close to finding a solution.

Thank you for your help and time.

Robert K.

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Hi there,

    It's pretty simple really, just write to a table...The players X and Y position. Then, when you enter that scene again, just take those values and put them back into the players actor. That's a simple explanation.

    If I have time, I'll try and create a demo.
  • robertkdalerobertkdale USAMember Posts: 912
    ThankYou. I would really appreciate a demo!
  • mrpacogpmrpacogp Member Posts: 400
    I`m interested on that demo too
Sign In or Register to comment.