savegames

Just started using Construct 2? Post your questions here

Post » Tue Jul 14, 2015 9:38 pm

Quick question, can I make savegames without using buttons to save and load? Because I am using in app purchases and I don't want the player to buy the iap then accidently not press the save button then they just spent money for nothing. I tried it with the every tick behavior but it didn't work. Thanks for help!
B
12
S
3
Posts: 129
Reputation: 1,131

Post » Tue Jul 14, 2015 11:51 pm

Try using the condition "On end of layout," every time he quit the layout or close the project, will trigger the condition.
B
6
S
1
Posts: 29
Reputation: 465

Post » Wed Jul 15, 2015 11:00 am

You could use any triggered event for this..
You probably are changing something once when the iap is done, so that event could be used to add the save-action..

Not sure if using a savegame is nescessary though, local storage would do just fine for a thing like this..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Jul 17, 2015 12:52 am

Thanks for the help! Will do that.
B
12
S
3
Posts: 129
Reputation: 1,131

Post » Fri Jul 17, 2015 1:28 am

Wait, so i did "On end of layout, save game to slot "mysave"." What should i do with the load behavior, i thought it would be on start/end of layout but that didn't work. @seymore @LittleStain
B
12
S
3
Posts: 129
Reputation: 1,131

Post » Sat Jul 18, 2015 1:43 am

@LittleStain for some reason it wouldnt come up before
B
12
S
3
Posts: 129
Reputation: 1,131


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests