[Feature Request] Save options

Discussion and feedback on Construct 2

Post » Sat Apr 06, 2013 10:29 am

Hello!

First of all: the new save/load system is absolutely great! I'd like to see more options, though. For example, in my game I'd like to save all object data for a level editor. In this case I don't want all global variables to save.

Perhaps a function 'Save all objects' and 'Save all variables' would be nice. :)

~ Thijs
B
21
S
6
G
3
Posts: 64
Reputation: 2,924

Post » Sat Apr 06, 2013 2:41 pm

Can you explain precisely why this is necessary? Why can't you change the global variables after 'On load'?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Sat Apr 06, 2013 9:45 pm

My game is connected to a MySQL database (for user data and in the future a user created leveldata) I'd like to add a level editor to it, and the new save/load feature would be ideal if it wasn't for the fact it saves everything. The user data is actually saved into global variables, so I don't want that to be overwritten when I load the game. Besides, I don't want the player to post their user data (variables) when they're uploading their levels!

Perhaps a solution could be to tell Construct what to save. (variables/objects)

I hope I made it more clear now. I know how long your to-do-list is and I have no idea if it's hard for you to implement. Therefore, I'll respect your opinion if you think it's important enough to add.

Have a nice day!
~ Thijs
B
21
S
6
G
3
Posts: 64
Reputation: 2,924

Post » Sat Apr 06, 2013 10:03 pm

@Ashley

I would like to ask you if is possible to implement two things too.


Feature requested:

- Last saved data;
- Local saved data list;


What expect from these features:

- Last saved data will be used to make easy the implementation of the Continue button, picking the saved data with the newest date;

- Local saved data list will be loaded inside a special string saved with the save data, so, when you want save the game, you can restore the list to give to the player the saved list, with date, hour, etc, and he will can replace one of the save slots or make a new one.
Also, it will make easy to make a list for a Load menu.


What the deal without these features:

Actually, I'm figuring out how to implement a load menu with 3 slots, and a continue menu too. Maybe it's simple and can be achieved with less than 10 events, but I have no idea of how.TELLES08082013-04-06 22:05:58
ImageImageImageImageImageImage
B
92
S
19
G
12
Posts: 1,192
Reputation: 18,276

Post » Sun Apr 07, 2013 2:02 am

@Thijsku

You could log all your object position into an array and convert it to JSON and load it up when the game starts ...

That's how I do it ...
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Sun Apr 07, 2013 3:50 pm

Well you should be able to do this by shifting your variables in to an object with a No Save behavior, then copying the variables back after On Load. I guess having a 'no save' option for event variables would make this easier though?

@TELLES0808 - you could make a 'continue' option just by saving the slot name to WebStorage when saving.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Sun Apr 07, 2013 8:00 pm

[QUOTE=Ashley]I guess having a 'no save' option for event variables would make this easier though?[/QUOTE]
I think that's a great solution.
B
21
S
6
G
3
Posts: 64
Reputation: 2,924

Post » Sun Apr 07, 2013 10:36 pm

@Whiteclaws , you can give me a sample .capx please? I'm totally retarded when talking about JSON.

Thank you @Whiteclaws and @AshleyTELLES08082013-04-07 22:36:49
ImageImageImageImageImageImage
B
92
S
19
G
12
Posts: 1,192
Reputation: 18,276

Post » Sun Apr 07, 2013 10:45 pm

@TELLES0808 , Please don't distribute this one :(

Whiteclaws2013-04-07 22:53:24
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Sun Apr 07, 2013 10:51 pm

Okay, thank you @Whiteclaws
ImageImageImageImageImageImage
B
92
S
19
G
12
Posts: 1,192
Reputation: 18,276

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Eisenhans and 4 guests