How attributes work
if I am making an iphone game involving attributes, do the attributes save/stay the same after the game is exited?
Best Answer
-
carlblanchet Posts: 755
You must use the "Save Attribute" behaviour to save each attribute that you want to keep their number (Do this when they are changed), and the "Load Attribute" behaviour to load them every time the game is opened (Do this in the Initial Scene).
This will although not have effect in the gamesalad preview, but will save when the game is on a device, including gamesalad viewer.
Answers
if LoadLevel = 1, the change scene to level 1. would that work?
Like i said, I don't know what you are doing in your game, because you could do it the way you described, but that way usually involves other types of conditions in the game to go to the next scene.
Or you could do it old school before we had tables and make a new scene for each level. It's a simple behavior to change scenes. Just make a new scene and call it "Scene2" or whatever you want, and then in the button onscreen in level 1, just drop a rule in it that says "when touch is pressed" - "Change scene" > Scene2
I recommend getting to know GameSalad real well by watching the youtube cookbook vids. They will get you up and running in no time.
http://www.youtube.com/user/GameSaladCookbook/videos?sort=dd&flow=list&page=1&view=0
And this site is a lot of help as well.
http://gshelper.com/