DO NOT ISE THE RESET SCENE BEHAVIOR. I learned this from TShirtBooth, and have realized how important it is. When you reset the scene, gamesalad has to reload all of those actors you destroyed and spawned which can take a few seconds. I have also had the resetting scene attribute give me trouble with resetting attributes.
What I do (TShirtBooth taught me) is to create self attributes for every actor that moves in the scene...
self.x and self.y (these are real att.)
At the beginning, change those to the actor's self.position.X/Y
Then make a boolean attribute called reset. Have your reset button change the reset attribute to true, then after a second, back to false.
I am not going to type any more unless you want this help! In the end, your resets are instantaneous, and the user won't have to wait.
Comments
cheers
http://www.flickr.com/photos/72960416@N04/6583271967/
http://www.flickr.com/photos/72960416@N04/6583269129/
A-test
http://www.flickr.com/photos/72960416@N04/6590355215/in/photostream
F-test
http://www.flickr.com/photos/72960416@N04/6590341285/in/photostream
What I do (TShirtBooth taught me) is to create self attributes for every actor that moves in the scene...
self.x and self.y (these are real att.)
At the beginning, change those to the actor's self.position.X/Y
Then make a boolean attribute called reset. Have your reset button change the reset attribute to true, then after a second, back to false.
I am not going to type any more unless you want this help! In the end, your resets are instantaneous, and the user won't have to wait.