Page 1 of 1

Preview Window does not reset the game state

Posted: Sat Aug 16, 2014 5:58 pm
by jonaspm
Hello everyone :) i have a problem :S

When i preview the game, i expect that when i push the stop button, the game will reset to it's original settings (just as before the preview) but the game stays as it was before stopping...

¿Did you understand? sorry for my bad english :S

Posted: Sat Aug 16, 2014 6:50 pm
by Kjell
Hi jonaspm,

This is not a bug, it's a very convenient feature. It allows you to permanently set properties / data from your project itself ( which is ideal for level editing and such ).

Simply make sure to reset any values that need to be reset using a ZExpression .. you're going to need / want to do this sooner or later anyway ( for instance after a "Game Over" ).

K

Posted: Sun Aug 17, 2014 6:01 am
by jonaspm
Oh! I see

And... ¿Is there any way to disable it?

That would also be useful :)

Posted: Sun Aug 17, 2014 10:45 am
by Kjell
Hi jonaspm,
jonaspm wrote:Is there any way to disable it?
Nope. You could always use F9 to build & run a standalone version of your project though.

Anyway, can you explain the situation where you wanted your project to revert back to the way it was before previewing your ZApplication?

K

Posted: Mon Aug 18, 2014 1:11 am
by jonaspm
Wel i configured the initial position of the main character, the default initial rotation and all of that and i just wanted to test the game...

But when i saw the preview, the initial settings became a mess

Posted: Mon Aug 18, 2014 10:37 am
by Kjell
Hi jonaspm,
jonaspm wrote:Wel i configured the initial position of the main character, the default initial rotation and all of that and i just wanted to test the game...

But when i saw the preview, the initial settings became a mess
You should set the initial position / rotation of the SpawnModel component, not the Model itself ;)

K