Use tables and store it. Remember to use save table after save value on table.
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
There are plenty of video tutorials if you search for them. Tables are best, especially if you want to store multiple attributes. For a single attribute, you can use Save Attribute and then use Load Attribute to retrieve it from the device.
Obviously you haven't done any research or looking around on how to do this but there are many tutorials out there I can guide you to... You should also do what mrpacogp said and save those attributes in a table.
yeah i have already see it but when i reset the scene the score turn to 0
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
Saving and loading attributes only works on a device, not in Preview. If you are testing it on a device then you need to make sure that your Load Attribute is at the start of your game and that you don't have other rules that reset the score to 0.
If you are stuck, post screenshots of your rules. Without those, we cannot help you.
so if I understood when I use save/load attribue it will work even if I turn my device off because I have text attribue, I change it and when I touch back to return to the scenes and I choose the scene where I want to load my text attribue it show me nothing. but when I put a change scene actor into my scene, and I change my text attribue and touch the change scene actor to go to the scene where I load my text attribue it works the text attribue is changed.
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
@tiesto This will only work on a device, not in Creator Preview. And yes, it will keep the data. Post a screenshot of your Load Attribute and Save Attribute rules. Also make sure that the Load Attribute behavior is the first behavior/rule to run on the first scene.
Braydon_SFXMember, Sous Chef, Bowlboy SidekickPosts: 9,273
edited March 2013
@tatiang - Perhaps I am not reading correctly, but...I can test if my save/load attributes work in preview. You just need to hit the reset icon and if everything is set up correctly, your attribute will save and load when you enter that scene again..?
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
Honestly, it's been a long time since I've tested save/load attributes in Preview. You're probably right!
Comments
Remember to use save table after save value on table.
can you explain me what did I had to do so it works
thanks
You should also do what mrpacogp said and save those attributes in a table.
If you are stuck, post screenshots of your rules. Without those, we cannot help you.
because I have text attribue, I change it and when I touch back to return to the scenes and I choose the scene where I want to load my text attribue it show me nothing.
but when I put a change scene actor into my scene, and I change my text attribue and touch the change scene actor to go to the scene where I load my text attribue it works the text attribue is changed.
hank you for your explanation