still not work defult game.attribute.A = 1 in scene 1,when touch press ,constrain game.A=2, and save attributte = a1 in scene 2,when touch press,load attribute=a1 but when i open app again the game.attribute.A=1 is it a wrong way?
at the first scene (Title scene for exemple) you can add an actor out of the scene and add it a behavior "Load attribute" And in your game, save the attribute when you need it... that's all
PS : you have to use the same name (exactly) for Save and Load! If you save in SaveA1, Load SaveA1, not savea1...
Comments
http://gamesalad.com/wiki/behaviors_reference:save_attribute
Also the Load Attribute behavior when you app opens.
The keywords will need to match exactly between the Load and Save behaviors
i think i did a wrong why.
i creat 2 actors at the first scene,and give the one a save atrribute behavior ,the keyword is a1,
and give another one a load attribute behavior,the keyword is a1 too.is it right?
if i can use the gs view "recent games to" test it?
defult game.attribute.A = 1
in scene 1,when touch press ,constrain game.A=2, and save attributte = a1
in scene 2,when touch press,load attribute=a1
but when i open app again the game.attribute.A=1
is it a wrong way?
And in your game, save the attribute when you need it... that's all
PS : you have to use the same name (exactly) for Save and Load!
If you save in SaveA1, Load SaveA1, not savea1...