how to make objects go back to original position?

I was given some info here on the forums and it didn’t work . The problem was that when I press the play button in restart.lua I go back to level1.lua the objects are in the same place they were when I left the scene . Im going to word it differently here since I know when I word things I do a terrible job .How do I make it so that the objects go back to there original position as they were when I first came to the level1.lua scene . I’ve seen a way to do this with storyboard but I was told that in the future storyboard might not work so I wont be using storyboard .

Thank you for your time kind gent .

@true,

Instead of using the scene:create() method to build the scene, use the ‘will’ enter event.

https://www.youtube.com/watch?v=yAAhj_RbXkM&feature=youtu.be

  1. Here is an example showing this concept:

http://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2015/07/rebuild_scene_on_each_enter.zip

  1. I used my composer framework code from here:

http://github.com/roaminggamer/CoronaGeek/raw/master/Hangouts/composer_scene_manager.zip 

to create this.  If you’re just starting, consider using it as it should help you organize things.

PS - Look at the file ‘playGUI.lua’ and look for the marker ’ true’ and the comments after each marker.

So do I change all of my scene functions like show and hide to will enter did enter ect. Also what do I put my display objects in the Will enter function .

I’m not going to give a lot of advice on how to set up your project, but if you want to rebuild the scene each time you re-enter it, the code I gave you will point you in the right direction.

@true,

Instead of using the scene:create() method to build the scene, use the ‘will’ enter event.

https://www.youtube.com/watch?v=yAAhj_RbXkM&feature=youtu.be

  1. Here is an example showing this concept:

http://github.com/roaminggamer/RG_FreeStuff/raw/master/AskEd/2015/07/rebuild_scene_on_each_enter.zip

  1. I used my composer framework code from here:

http://github.com/roaminggamer/CoronaGeek/raw/master/Hangouts/composer_scene_manager.zip 

to create this.  If you’re just starting, consider using it as it should help you organize things.

PS - Look at the file ‘playGUI.lua’ and look for the marker ’ true’ and the comments after each marker.

So do I change all of my scene functions like show and hide to will enter did enter ect. Also what do I put my display objects in the Will enter function .

I’m not going to give a lot of advice on how to set up your project, but if you want to rebuild the scene each time you re-enter it, the code I gave you will point you in the right direction.