save and load attributes, How to test before publishing? what did I do wrong?
-Timo-
Member Posts: 2,313
hey guys,
I just published my game to app store (will give some more information when this problem is fixed )
its a game with levels and stars and I want to save the amount of stars and the level you are now.
so I did when level succeed save attribute game.level to key: level
and the first scene when opening app I have an actor with load attribute key: level to game.level
but for some reason it doesn't work and you have to start with level 1 again.
did I do something wrong or is there a better way to do this? is there a way how to test it before I update?
would really appreciate if someone can help me
thanks,
-Timo-
I just published my game to app store (will give some more information when this problem is fixed )
its a game with levels and stars and I want to save the amount of stars and the level you are now.
so I did when level succeed save attribute game.level to key: level
and the first scene when opening app I have an actor with load attribute key: level to game.level
but for some reason it doesn't work and you have to start with level 1 again.
did I do something wrong or is there a better way to do this? is there a way how to test it before I update?
would really appreciate if someone can help me
thanks,
-Timo-
Best Answers
-
Braydon_SFX Posts: 9,273I'd always recommend an adhoc build before publishing. There are a lot of people that sometimes use the viewer, or even GS Preview before uploading. That's a mistake. The only way you'll know how your game will really play on a device is with an adhoc build.
It's really easy with Tables, as already mentioned in this thread. There is no load table behavior, do it's just as simple as saving it. I've never had issues with grabbing info and saving it from a Table. But again, make sure you test with adhoc build.My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
-
KillerPenguinStudios Posts: 1,291
@sadida172 I will try using tables is there a way to make sure it works before updating my game?
As @Braydon_SFX said, test with an AdHoc build. It is very important to test with an AdHoc build as it is pretty much the same thing and will work just like your published version will. Everyone should make it part of their requirement to do a few AdHoc testings before publishing. I don't know why you wouldn't want to really test your stuff to make sure everything is working. This is a Critical step in developing. Make it a priority to do AdHoc testing!
Just saying as I see way too many people publishing builds that they only used the viewer to test then wonder why their published build either got rejected or things aren't working like they are supposed to and there's a lot of bugs. Sorry for the small rant. I just see this way too often and it kind of shows that if you don't want to take the time to do full, legit testing of your product, you don't care what your putting out there just as long as it gets approved. -
KillerPenguinStudios Posts: 1,291
are you sure tables save automatic? because it doesnt like like it. does someone have a template where you save the level?
Hey @timolapre1998, You have to tell it to save the table. The table won't save if you don't tell it to. There is a "Save Table" behavior.
Answers
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
thanks all!
I will try tables with adhoc
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
Levels, score, coins, power-ups, trophies and more
I have a game where you can collect 3 stars in every level. the amount of stars you have is saved in tables. this works fine. but my level part doesn't. I did the same thing as I did with my stars but every time I reset the game the level attribute inside the table is back the number it started. can you change the number inside the table and when you reset it is already saved and its loads again? when the table value is 1 and it changes to 2 and reset the game it is 1 again. I am sure I didnt put a behavior with change table value to 1 or something because this also happens when I start with 10 or something...
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮