Multiple Storage Saves Of The Same Attribute Using Different Keys
Hi GS Community, i was wondering if someone could help me. I wanted to store the same attribute (different values) multiple times in storage using different keys. I am developing a rating system that rates all 25 of my different text phrases and saves when you turn off your device. After you click the arrow button to advance to the next frame, it would store that rating (from 1 to 5stars) that you gave it. I have the stars working so it can rate 1 to 5 stars, but now i am working on storing per phrase that is displayed, and also make it in a way it accommodates for future phrases i add. So i was thinking, in the save attribute expression editor to use a table to refer to different key values, but save to the same attribute (the attribute that "save attribute" wants you to save to). This is where i am stuck. Appreciate the help guys!! Thanks in advance!!
Best Answers
-
EatingMyHat Posts: 1,246
Sounds like you need Writeable Tables which are coming in the next release. For now you can use the Save Attribute behavior while using the expression editor for the 'key' doing something like: "StarsCountForLevel"..self.level -
jonmulcahy Posts: 10,408
Writable tables are due this week. Wait for them, it will be 100000x less work to use them
Answers
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx