Save an Actors position
OrchestralMonkey
Member Posts: 33
Here's what I'm trying to accomplish:
Setup: 1 actor, 2 scenes
After I move the actor around in scene 1 I'll press a button that will save the actor's position and also change scenes to scene 2.
Now I'm in scene 2 and want to go back to scene 1, so I click a button that returns me to scene 1 and loads up the position of where the actor was in scene 1. Make sense?
How do I make the program remember my actors position on the screen? Every time I try, the actor just ends up at the original starting position in scene 1 instead of the position it left off at.
Thanks.
--Lee
Setup: 1 actor, 2 scenes
After I move the actor around in scene 1 I'll press a button that will save the actor's position and also change scenes to scene 2.
Now I'm in scene 2 and want to go back to scene 1, so I click a button that returns me to scene 1 and loads up the position of where the actor was in scene 1. Make sense?
How do I make the program remember my actors position on the screen? Every time I try, the actor just ends up at the original starting position in scene 1 instead of the position it left off at.
Thanks.
--Lee
Comments
How do I save the spawn of an actor? Example: actors spawn out onto the scene and when I click a button, the position of all of the actors on screen are saved to be recalled at a later time?
I had success with one actor, but the spawning of actors is giving me problems.
Thanks.
--Lee
I tried that and it doesn't seem to be working. When I go back to the previous sene it starts the spawn again instead of remembering where all of the spawns previously were.
Just incase it's unclear what I'm trying to achieve, let me re-explain:
I have two scenes. In scene 1 I have an actor (enemy) that is spawning (therefore I have multiple enemies on the screen). Also I have a button that states that when clicked it will save the position of the spawns (enemies) and then change the scene to scene 2.
In scene 2 I have a button that states that when clicked it will load the saved positions of the enemies in scene 1 and also change the scene back to scene 1, therefore returning me to exactly where I left off before going to scene 2.
Hope that makes sense. Also I should note that I am a beginner with GameSalad so maybe I'm doing something incorrectly.
--Lee