New game vs Persist behavior

Get help using Construct 2

Post » Wed Aug 14, 2013 11:03 pm

Hello everyone,

I've used the "persist behavior" on some objects of my game. The problem is, when I go back to the main menu then start a NEW GAME, those objects keep their states and aren't reseted.

I have no idea how to get their original state without closing the game and relauching it.

Perhaps it's not yet possible. I saw some topics about an "enable/disable persist behavior" option on the ToDo list of Ashley.
But I'm no sure if this is the answer to that issue.

If someone has the solution or, at least, a temporary solution, that would be nice. :)

Thanx !
B
70
S
21
G
12
Posts: 314
Reputation: 12,061

Post » Wed Aug 14, 2013 11:19 pm

Possibly a stupid answer as I haven't played around with persist behavior, but would setting: "On start of layout - reset global variables" help?

As I say, never played with persist so ignore me if I'm wrong
B
11
S
1
Posts: 40
Reputation: 485

Post » Wed Aug 14, 2013 11:27 pm

Hello ReanimtedNerd,

I already tried to reset all the globals but it didn't worked.
B
70
S
21
G
12
Posts: 314
Reputation: 12,061

Post » Thu Aug 15, 2013 2:18 am

Possibly having a save state of a blank project with persistent objects in their initial state and silently load that save state when selecting NEW GAME? Maybe. If that exists somewhere.
B
45
S
15
G
73
Posts: 2,007
Reputation: 43,396


Return to How do I....?

Who is online

Users browsing this forum: MoscowModder, Yahoo [Bot] and 6 guests