coming back to previous layout

Get help using Construct 2

Post » Fri Dec 27, 2013 10:53 am

Hi guys !
Im in the middle of creating a game and I have a little problem, I want to make one pause menu for all levels, which will be called by touching right bottom corner of screen in the current layout/level (let say that will be third level of fifteen) and I want to come back from pause menu to level on which i've played before pause.

shortly: I need to know how to come back to previously loaded layout.

How should I do this ?
please help me :)
Posts: 2
Reputation: 129

Post » Fri Dec 27, 2013 12:26 pm

Is the pause menu a separate layout then? If the pause menu loads in front of the current layout then you're already on it so I'm going to assume the pause menu loads on a different layout. Just give each layout a 'key' or global variable so level 1 is 1, level 2 is 2. Every time you pause it sets the key depending on what level you're playing. Then when you unpause it checks the key variable and if it is 1, it returns to level 1 etc. So in short : use a global variable : Pplinkie2013-12-27 12:26:46
Posts: 2,418
Reputation: 55,024

Post » Sun Dec 29, 2013 1:18 pm

i'll check this solution mate, thx for reply ! ;)
Posts: 2
Reputation: 129

Return to How do I....?

Who is online

Users browsing this forum: fbarraza28, Jayextee, RogerBarber and 4 guests