How Can I Store A High Score

Discussion in 'How Can I...?' started by Sleepypower, Oct 29, 2018.

  1. Sleepypower

    Sleepypower Boxer

    Joined:
    Oct 26, 2018
    Messages:
    12
    Likes Received:
    1
    I need to create a high score and then when the user closes the app and then opens the game, the high score is on the screen like stored in some local variable or something. Help, please!
     
  2. Kanishk Sachdeva

    Kanishk Sachdeva Avid Boxer

    Joined:
    Jul 10, 2018
    Messages:
    217
    Likes Received:
    15
    Just drop a label in the UI where you want score to be, change the settings between points or distance or coins and you get an options to have current score or best score and many other options , just play with them.
     
    Sleepypower likes this.
  3. rraallvv

    rraallvv Boxer

    Joined:
    Feb 4, 2019
    Messages:
    7
    Likes Received:
    1
    My game is embedded in an app that has it's own system of reward points, is there a way to read/write the the amount of in-game points so I can redeem/exchange the app reward points for in-game points? Thanks.
     
  4. weboha

    weboha Avid Boxer

    Joined:
    Aug 8, 2018
    Messages:
    194
    Likes Received:
    138
    use global settings. its saved when user close game
    Settings['score']=100;
    https://itunes.apple.com/app/pod-race-3d/id1448096520

    i used this code for saving high score:
    if (Settings['score'] > Settings['bestscore']){
    Settings['bestscore'] = Settings['score'];
    }
     
  5. rraallvv

    rraallvv Boxer

    Joined:
    Feb 4, 2019
    Messages:
    7
    Likes Received:
    1
    Thanks, are those settings accessible from my app, from Java code on Android?
     
  6. weboha

    weboha Avid Boxer

    Joined:
    Aug 8, 2018
    Messages:
    194
    Likes Received:
    138
    i am not sure but i thinks is not to accessible
     
  7. Ahsan

    Ahsan Boxer

    Joined:
    Feb 7, 2019
    Messages:
    10
    Likes Received:
    0
    can giv a demo template on how your doing this I suck at coding and I never used buildbox before started just recently with bb3 since i heard buildbox doesn't require coding but too many things need coding :'(

    Email:blazingdevil44@gmail.com
     
    Last edited: Mar 8, 2019

Share This Page