Hi,
I´m developing the code of my adventure and I need some help if someone knows how to do this:
The character picks up a piece of paper. Then he goes into the inventory to check it. When he right clicks on the object, it takes him to another scene, non interactive, where he can only move the mouse and highlight the text to see the paper in detail.
When he finish to look at it he can leave the scene by clicking out of the image.
I´ve figured out how to bring him to the scene, but not how to return.
How can I save the character position to return to the previous scene? So after checking the paper he can return to where he was before.
The idea is that you can check this paper anywhere, anytime during the game.
I´ve got the three scripts for the moment:
- The script of the paper on the inventory, paper.script /// It takes him to the other scene throught this "Game.ChangeScene("Scenes/paper_detail.scene");
- The script of the scene, scene.init.script /// I´ve got hidden the character and set up the interactive regions
- The script of the region inside the scene to leave, exit_scene.script /// What should I use to return?
Any help would be much appreciate it,
many thanks