Reseting a Scene
Flamingbanana
Member, PRO Posts: 90
I have a reset button in my game to restart the whole scene but all it does is reset some of the attributes. I want to restart the entire scene, I don't want to just reset a couple of attributes. I don't want to reset the entire game either :O Is there something I'm missing here or is gamesalad not working correctly?
Thanks,
Tad
Thanks,
Tad
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Worth a shot
Cheers
I have more scenes
when I change scene the first time, the scene is reset
when I change the scene a second time, the scene not restarts from the beginning
I have more attributes and I'll reset it all (attribute boolean 1, attribute boolean 2)
maybe I have to use a boolean
but I can not understand how
I created a boolean attribute game.reset
I have one button for to change scene
when touch is pressed
change attribute game.reset is true
when attribute game.reset is true
???
What should I do?
thanks for help
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
rule
when touch is pressed
change attribute game.reset to true
rule
when attribute game.reset is true
change scene to next scene
otherwise
change attribute game.reset to false
but so not work (the scene not restart begin)
where should I put game.reset to false?
thanks
If you are changing scenes and "the scene not restart begin" can you explain what you mean by this? What exactly is not restarting/resetting?
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
rule
when attribute game.correct is true
change... interpolate... ecc...
otherwise
change attribute game.reset to false
rule
when attribute game.correct = 4
you win
change attribute game.reset to false
otherwise
change attribute game.reset to true
-------------------------------------------------------------
in button for change scene
rule
when touch is pressed
change attribute game.reset to true
rule
when attribute game.reset is true
change scene to next scene
---------------------------------------
maybe i put an invisible actor reset in the scene2
change attribute game.reset is true
reset scene
----------------------------------
----------------------------------
I'm probably missing something that has to do with logic!
game.reset when is false?
game.reset when is true?
game.reset is true when game.correct = 4?
and where should I put behavior reset scene?
thanks for help me