Reset Scenes from Different Scene?
AMoon
Member Posts: 16
I want to reset scenes 1,2,3 from scene 4 is this possible? I thought about an attribute scene rest set to 0 then a rule in that scene if scene reset = 1 the reset scene, but this only works when you enter the scene. Can it be reset without entering each scene?
Comments
It would be nice if they could persist between launches of the game too, but I guess that's another topic.
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Should I submit that as a feature request?
But even when not using Reset Scene Behaviour, but returning to a scene from another one, it'll still start at the beginning of the scene, with your actors in their initial positions (but definitely any new game attributes values). Unless you're using a couple of game attributes each, to track the x,y coordinates of your actors constantly, which would use up a lot more processing power during the game, the returned-to scene won't "know" the last position of them.
So the only way is to use 2 Save Attributes (for x and y) for each and every actor who position you want for them to start from where they last were, as Save Behaviours upon leaving the scene; and before entering the scene again, you need to Load Behaviours for them.
It's a lot of work to do this, I realise. You'll also need Save/Load Behaviours for whether or not a baddie has been destroyed or not. Or it's alpha changed; or stopped rotating, etc., etc.
I reckon it's possible to write a Behaviour called Save Level State for instance (although I hasten to add I wouldn't even know where to start to do that) but it'd be complex, I reckon, and something that Gendai probably wouldn't consider doing, at least for quite a while. I think that Save Attribute and Load Attribute isn't going to be replaced sometime soon, but you could submit a request, if you like. You can only but try!
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
And even if/when you do find an example, if you don't know: be aware that saving and loading of attributes won't work on the Mac, only in the GS Viewer or on an actual iDevice.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
But then again for Greenhornet, you are talking about moving in a big area which needs to go to a different scene in order to continue the journey i presume?That's abit tricky but if you were able to create a rather large area for one scene and slit them up in different parts and use a camera + character x,y interpolate to the next segment of that scene so the whole thing should not reset as it's still the same scene just another area of the scene.