Reset problems with scenes...
Hey all, I have a game where the main character jumps over randomly created/timed obstacles. When the scene changes, the previous scene's timer and spawning times come through to the present scene (which I don't want). I have an actor in each scene that says AT START OF LEVEL (set x y z, etc.- i.e. a bunch of change attributes). And yet I'm still having troubles. It appears that a reset scene would help but I don't know how to implement that since I don't want a reset button. Am I missing anything here? How can I have the start of each level say, RESET ALL VALUES. I thought I did that with the change attributes. Is the solution a timer? Perhaps saying AFTER .1 SECOND CHANGE ATTRIBUTES X Y Z.? Any help would be appreciated thanks so much!
Comments
On your actor, make the first rule a "change attribute" that changes your boolean to false.
Now make a rule that says when game.reset = true change "bunch of change attributes".
put that rule wherever you want.
Now you can make a Rule that will change that to true, when it executes, the list of attributes will all change.
so instead of "when health = 0, change scene or reset scene"
you would use "when health = 0, change game.reset to true"
Another way, would be to use all scene attributes, and the reset scene behavior.
Glad to be of some help to someone.
Now if only I could find answers to some of my questions
Also your suggestion helped to a certain capacity, but I'm still having a few problems- especially with timers. Any suggestions on that? And again, shoot over your questions!
Sounds like you want to use scene.time
You will need to "unlock" the prototype in the scene to access it.
But if you base a timed rule on it, it will definitely reset after a "reset scene" behavior.