How do I Make a save and load to work with level selection

Get help using Construct 2

Post » Thu Jan 15, 2015 5:41 am

Ok I have 2 levels of a platformer made and a stage selection screen that works but here is the problem.
I have a door in my game and when the main player collides with the door I have the code

Player on collide with door...... System wait 0.5
System Save game to slot "GameSave"
System add 1 to Win1 ( my variable to unlock the next level)
System Go to level select


Now on my stage selection screen I have this code to load the save

System On load complete.....System load game from slot "GameSave"


Where should I put the save code and the load code for it to work correctly.
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 681
Reputation: 16,613

Post » Fri Jan 16, 2015 8:58 am

Try to use 2 save slots one for level 1 and the other for level 2.
Image
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Mon Jan 19, 2015 5:19 pm

A0Nasser wrote:Try to use 2 save slots one for level 1 and the other for level 2.


I forgot to reply that I figured it out but thanks. What I did was different I made a global variable for each level and on completion I was able to save in the same slot.
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 681
Reputation: 16,613


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests