Page 2 of 3

Re: Make scenes persist

PostPosted: Fri 6 Apr 2018, 01:15
by MicosS
There you go! :)

Re: Make scenes persist

PostPosted: Fri 6 Apr 2018, 01:27
by MicosS
Im using that functionality in my game, as Lizard just said. Esc key (or whatever key you want)- go to a new paused page. Hit enter or return key and you get back into the game. it's easy!

Re: Make scenes persist

PostPosted: Fri 6 Apr 2018, 01:31
by okbrenners
MicosS wrote:Im using that functionality in my game, as Lizard just said. Esc key (or whatever key you want)- go to a new paused page. Hit enter or return key and you get back into the game. it's easy!



Thanks! and very cool I'll need to check that out, probably will be using.

Re: Make scenes persist

PostPosted: Fri 6 Apr 2018, 06:13
by 500gx20pkts
MicosS wrote:Im using that functionality in my game, as Lizard just said. Esc key (or whatever key you want)- go to a new paused page. Hit enter or return key and you get back into the game. it's easy!


How did you used Esc key? (i can use any key except Esc key) :?

Re: Make scenes persist

PostPosted: Wed 16 May 2018, 10:45
by seehion
I have modified platform game to test switching screens. The main screen of the platform game is called "New scene". During half way of the game, I manage to use "Pause the scene and start 'Bonus'" where Bonus is the name of the second screen.

On the second scene - Bonus. I put a sprite to trigger the event "Stop the scene and go back to the previous screen".

The Bonus will close and screen switched over to "New screen" but it did not resume from the last position instead started from new again.

Could someone help to to make the game resume after switching? Thanks in advance

Re: Make scenes persist

PostPosted: Wed 16 May 2018, 11:04
by Lizard-13
That should work, maybe there are other events messing it up, can you share your modified example? :)

Re: Make scenes persist

PostPosted: Wed 16 May 2018, 16:36
by seehion
Thank you very much for your prompt reply! I have it in my office PC. I shall attach it immediately once I am back in office.

Do you think is it possible for me to provide some pointers or website with more info on scene swop?

Re: Make scenes persist

PostPosted: Wed 16 May 2018, 17:28
by Lizard-13
I can't give you a link to the wiki because it seems the feature isn't covered, but here is an example that uses this function to teleport the player around scenes: http://forum.compilgames.net/viewtopic.php?f=19&t=8547#p59744

Re: Make scenes persist

PostPosted: Thu 17 May 2018, 09:55
by seehion
http://megaload.co/download/ca97d6e4e1604f2c222e82913753c66e

I have attached the zip file.

Thanks in advance.

Re: Make scenes persist

PostPosted: Thu 17 May 2018, 11:57
by MicosS
You must delete the object "Question". Change to scene Bonus AND delete the object Question. Otherwise happens a loop between both scenes.
Also, in the Bonus scene, i think you just need one action, the "Stop the scene and go..." and not the other action you have there.