Reset values

For questions about using Classic.

Post » Wed Aug 06, 2008 10:47 pm

Is there an easy way to reset global/private variables to their initial value, without either having to restart the game (or anything like that) or brute forcing it (doing set value to 1 set value to 4 set value to 20 ...)

would be nice if there was a "get global initial value" or something so you could just set up a big loop to do it all for you
B
2
S
2
G
5
Posts: 236
Reputation: 2,122

Post » Fri Aug 29, 2008 7:35 pm

The only solution I know of is to have a global variable which you would set equal to the global variable at start. Of course, the problem with that is the more you want as initial value, the more variables you would need, and it would slow it down more as well as leave more room for error.
B
2
G
4
Posts: 23
Reputation: 1,096

Post » Sat Aug 30, 2008 9:50 am

May be easier to have a 'Reset all values' both under the System object, and all other objects.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Sat Aug 30, 2008 4:16 pm

^ this was the sort of thing I wanted :)
B
2
S
2
G
5
Posts: 236
Reputation: 2,122


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests