katzin's Recent Forum Activity

  • Please tell us how was it one day i will go.

  • ok now i get it.

    The thing is i had set local key bestdistance to webstorage.localvalue ("bestdistance") and is set local key "bestdistance" to round(totaldistance).

    But when i saw the tutorial on youtube they use webstorage.localvalue... which is the diference between both?

    This works if the game is for android cell phones?

    i think now im going to try the best 3 scores

  • No wait, i think i know what is happening... when i created the textbox in one of the fields i think the text field that have writed text by default i put a 0 there maybe i should just leave it in blank.

  • still don't know which is the bug... so your game update the bestDistance correctly right?

    Im going to check at afternoon when i come back from the work.

    Thanks for helping me

  • Sure, its the same template auto runner is in the construct File>New.

  • I put the quotes but is still doing the same, for an instant the BestDistance is set to the totaldistance but then is reseted again to 0.

    Could be Reset global variables to default and restart layout the problem with this? i saw in a tutorial that sais, on start of layout, set time scale to 1.0... could be this the solution?

  • like this? is still not working

  • Usually i play League of legends but right now i dont have internet till next week, so i play rogue games in my phone or Diablo 2 in my computer.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • didn't know what GDC was so i searched in google, Game Developers Conference .

    I can't go because im in Argentina, very far away from there.

    Please tell us after how was it!

    Regards,

  • Thanks for the help Joskin.

    I added the webstorage and the variable always resets, what i'm doing wrong?

    could be the reset of flobal variables or the restart layout?

    Thanks for your help

  • Hi guys im tryting to add a highscore to the template auto-runner so i added a new textbox in the middle called BestDistanceDisplay.

    When the player died i set to the bestdistancedisplay textbox the text of totaldistance, but then all the global variables goes to default and the layout is restarted, same thing happen with the text inside bestdistancedisplay.

    So, mi question is... how can i maintain the value in bestdistancedisplay textbox for every game?

  • Thanks a lot Shirokuma

katzin's avatar

katzin

Member since 25 Feb, 2014

None one is following katzin yet!

Trophy Case

  • 10-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies