Add behaviour at runtime

Get help using Construct 2

Post » Sat Feb 15, 2014 9:52 pm

@neutrinox Yeah, thats true. Persist behavior was made with reentering layouts in mind. But like I said. Reentering layout and restarting layout is one and same thing.

What do you mean by "you still need manual placement of items and characters" ?
ImageImageImageImage
B
156
S
64
G
41
Posts: 2,589
Reputation: 34,613

Post » Sat Feb 15, 2014 11:08 pm

@shinkan

Can you give me a example of a game in which persist behavior would be useful? Can this game get restarted after game over? Then what do you do with the persist behavior (if you cant reset it)?

My point is this:
If you can't reset persist behaviors, then it's useless for any game that need the option to be restarted (which is 100% of every video game I have ever played).
neutrinox2014-02-15 23:10:41
B
9
S
1
Posts: 97
Reputation: 715

Post » Sun Feb 16, 2014 12:06 am

I understand your point. And I know that game after restart should look the same every time. I'm just saying that C2 don't know if You want to restart game or go back to previous layout - that's why You need to specify that.

And like I in my first post it's doable using webstorage for example.
ImageImageImageImage
B
156
S
64
G
41
Posts: 2,589
Reputation: 34,613

Post » Sun Feb 16, 2014 12:10 am

Hi!

I get that Construct 2 doesn't know if we are restarting or going back to a layout. That's exactly why it would be so important to be able to tell construct to reset persist behaviors. That feature would make persistent behavior so much more useful.
B
9
S
1
Posts: 97
Reputation: 715

Post » Sun Feb 16, 2014 3:04 am

Storing object as JSON in arrays and/or dictionaries is nice because you can get at the data whenever you want, and do with it whatever you want.

That being said, the persist behavior is straight forward and easy. Enable/disable sounds like a good idea.TiAm2014-02-16 03:05:38
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,187

Previous

Return to How do I....?

Who is online

Users browsing this forum: COGames, loz666, Mogador, Sumyjkl and 1 guest