Save and load attribute doesn't work

2»

Comments

  • GamepencilerGamepenciler Artist/Game Developer Member, PRO Posts: 326
    edited September 2013
    Thanks @gyroscope the problem was in the Loading . I will try that

    Artist/Game Developer / Animator at your service..

  • GamepencilerGamepenciler Artist/Game Developer Member, PRO Posts: 326
    edited September 2013
    I finally got it!.. I made a preload scene with the load attribute before my main screen it works! I'm guessing some conflicts with the load attribute at the main screen but now it works.. woohooo!! \m/

    Artist/Game Developer / Animator at your service..

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Glad you got it sorted! Only one thing, doing it the way you've done it, how will your users start a new game....

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • GamepencilerGamepenciler Artist/Game Developer Member, PRO Posts: 326
    all the way from 0? i don't think my game requires new game i wanted a permanent score

    Artist/Game Developer / Animator at your service..

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited September 2013

    Fair enough! A family member won't be able to play then...all the way from 0... ;-)

    Joking apart (although in a way, it's serious) you could make a high scores scene plus the ability to start the game afresh with a zero score, but keeping the high scores.

    So load the high score(s) before the menu card, as you say, into the high scores scene then load in all other attributes to continue a game in a menu card button, as I suggested, as well as a new game button there....

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • DigiChainDigiChain Member, PRO Posts: 1,288
    To confirm then (because save/load keys have always caused me major headaches), whe saving key HighScore and then loading key HighScore - do we have to type in the key name without using the 'e' expression editor button?

    So does typing it in using the 'e' button cause errors??
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Hi @DigiChain Personally I've never used the Expression editor to put in Save/Load Keys.... possibly there's a glitch if you do.... it sort of rings a bell that that my be the case in the past... but seeing as it's a longer process to input via the "e", just ignore it! (I mean, just type 'em in as usual...) :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • KevinCrossKevinCross London, UKMember Posts: 1,894
    @DigiChain my Save/Load Keys are also typed without using the expression editor.
  • GamepencilerGamepenciler Artist/Game Developer Member, PRO Posts: 326
    yeah @gyroscope i wanted it to be simple because i'm just starting to do gamesalad programming, i also wanted to do the game center thing but maybe later on.. it might complicate things as it is right now... what was the glitch you guys are talking about?

    I have a new problem I try to make level select attribute but when I load 2 or more stuff with the score, it resets back to 0 again lol... i'd probably experiment on the tables now.

    this one failed me:
    photo Screen-Shot-2013-09-12-at-111915-PM.png

    Artist/Game Developer / Animator at your service..

  • KevinCrossKevinCross London, UKMember Posts: 1,894
    edited September 2013
    You seem to be loading your attributes every 0.5 seconds. That will just continuously overwrite the attributes with what was saved. Should it not be after 0.5 seconds?
  • GamepencilerGamepenciler Artist/Game Developer Member, PRO Posts: 326
    edited September 2013
    yeah i also tried after and for and unchecked run to completion.. Is it because it loaded soo many attribute at the same time?
    I also did another test by accident but that one unlocked all stages lol. I'm trying to figure out the cause and if i need to use the tables this time

    Artist/Game Developer / Animator at your service..

  • KevinCrossKevinCross London, UKMember Posts: 1,894
    I loaded 9 in my last game without any problems so shouldn't imagine 20 would be a problem. The every 0.5 seconds timer definitely seems wrong, as you only want to load them the once.
  • GamepencilerGamepenciler Artist/Game Developer Member, PRO Posts: 326
    um ok I will try after again

    Artist/Game Developer / Animator at your service..

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    yea get rid of that timer. I've loaded over a 100 attributes at a time, just put it in a loading screen before the game starts and put a timer that says after 3 seconds goto next scene.
  • GamepencilerGamepenciler Artist/Game Developer Member, PRO Posts: 326
    Hmm i actually haven't tried that .... Will do!

    Artist/Game Developer / Animator at your service..

  • GamepencilerGamepenciler Artist/Game Developer Member, PRO Posts: 326
    edited September 2013
    it's fixed now.. removing the timer at the load attribute did solved the problem thanks @jonmulcahy the score is saving and loading well . I also found my fault in the save attribute, had fixed problem with the sequence of saving by putting timer

    Artist/Game Developer / Animator at your service..

  • GamepencilerGamepenciler Artist/Game Developer Member, PRO Posts: 326
    Thanks guys you are all awesome!

    Artist/Game Developer / Animator at your service..

Sign In or Register to comment.