Game and Scene Attributes
If I wanted to load say a attribute on startup, could I do this even though it is set to Scene Attribute or would it need to be link to the Game Attribute List?
Thanks.
Thanks.
Comments
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
i have save game.A1 (actor1 attribute) to game.A1
and on Startup Load Attribute game.A1 to game.A1
But it doesn't appear to be working? What am I doing wrong - any suggestions please.
Save thing: You sure the load is working? Can you tell us how you're doing this, or post a little screenshot?
If you use the simulator, you can push the reset button and it's the same as rebooting the game.
Change Attribute -
game.A2 To (game.A2+1)%3
(This gives me the number 0,1,2 as the selection) based on this is what image is displayed.
Save Attribute -
game.A2 To game.A2
The main menu has the laod attributes section upon startup:
Load Attribute -
game.A2 To game.A2
I know I am going wrong somewhere just can't see the woods from the trees
I have a button now that should reset all the attributes, but again this is not doing it - any sugestions please?!
For example, set a keystroke to save a static number to your key. Set a keystroke to load that key. Have a text output of the attribute the whole time. Play the game and save it with the key shortcut. Play the game again and load it with the other shortcut. See if anything happens.
And yeah do it on the iphone viewer. good luck!
I don't know for certain but I'm vaguely remembering.
My point is, in my games, I create a game.A1 variable. I use that while the game is running, and save to key A1 when i get a new high score. I ONLY use the key A1 to Save to it.
The only time I load A1 is at the main menu. I Load all my saved data, key A1 to game.A1, etc.
Then I work with the game.A1.
I just looked at your code above and this piqued my interest:
"Save Attribute -
game.A2 To game.A2"
You CAN plug stuff into the key field, like you would any other variables. that's for the purpose of doing math in this case.
Look at 1:15 on this video. Are you typing it as a text string or plugging in a variable with mouse clicks? Let me know cause now I'm curious.