Saving and Loading a character’s position within a scene.
robertkdale
USAMember Posts: 912
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.
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.
Big Smile Games Play Happy!
Check out our other GameSalad exclusives.
Comments
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.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Big Smile Games Play Happy!
Check out our other GameSalad exclusives.