[Request] Except reset global variables

Discussion and feedback on Construct 2

Post » Tue Jan 13, 2015 1:23 am

Reset global variables
Reset all the global variables in the project to their initial value.

I wanna have an except function which allow it to keep chosen variables while other would be reseted.
Playable games:
http://jamesxxxyz.newgrounds.com/
Newest: Blue and red arrows
Latest update: Blue and red arrows

What you want in C3?
viewtopic.php?f=146&t=122050

Youtube: https://www.youtube.com/channel/UCLE7Ml ... /playlists
B
11
S
4
Posts: 281
Reputation: 1,543

Post » Tue Jan 13, 2015 1:27 am

Couldn't you parse the global variables you wanted to keep into local variables and then restore them from that after your reset action?

Regardless, I would also like to see this feature, I've never tried what I suggested above and often have to manually state each global variable, just save to one or two that would be reset via reset all.
B
59
S
21
G
9
Posts: 641
Reputation: 9,787

Post » Tue Jan 13, 2015 1:35 am

Elliott wrote:Couldn't you parse the global variables you wanted to keep into local variables and then restore them from that after your reset action?

Regardless, I would also like to see this feature, I've never tried what I suggested above and often have to manually state each global variable, just save to one or two that would be reset via reset all.


Thx. Good idea.
Playable games:
http://jamesxxxyz.newgrounds.com/
Newest: Blue and red arrows
Latest update: Blue and red arrows

What you want in C3?
viewtopic.php?f=146&t=122050

Youtube: https://www.youtube.com/channel/UCLE7Ml ... /playlists
B
11
S
4
Posts: 281
Reputation: 1,543

Post » Wed Jan 14, 2015 10:10 pm

Local variables doesn't work, but over webstorage or arrays. If you found it out, please upload a capx.
Playable games:
http://jamesxxxyz.newgrounds.com/
Newest: Blue and red arrows
Latest update: Blue and red arrows

What you want in C3?
viewtopic.php?f=146&t=122050

Youtube: https://www.youtube.com/channel/UCLE7Ml ... /playlists
B
11
S
4
Posts: 281
Reputation: 1,543


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests