Reset Game Data

Discussion and feedback on Construct 2

Post » Fri Jun 22, 2012 2:18 pm

Hello , People
I just wanna ask if There is On C2 an action that delete all game data or Reset game data ( I am too lazy to reset all variables to 0 )
Thanks

Note : If there isn't it would be awesome to add it in the next release , hun , @Ashley ?
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Fri Jun 22, 2012 2:21 pm

Do you mean the 'reset global variables' system action?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Jun 22, 2012 2:30 pm

@Ashley , Not only Global variables , reset game as it was played for the first time
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Fri Jun 22, 2012 2:36 pm

Then how about the Browser 'Reload' action?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Jun 22, 2012 2:38 pm

If you're talking about webstorage saved data there's a clear local storage action for this.
If you're talking about resetting a single session you can write a simple refresh page javascript and call it through the callJS plugin (Maybe there's even a simpler way but here there are 40C and my brain is melting )

EDIT: Ashley knows a simpler way Knifegrinder2012-06-22 14:39:47
B
11
S
3
Posts: 224
Reputation: 2,028

Post » Fri Jun 22, 2012 2:51 pm

Thanks , Guys I will try !
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 17 guests