Quick Question About My Distance Counter

Discussion in 'How Can I...?' started by Mrsi, Apr 8, 2019.

  1. Mrsi

    Mrsi Boxer

    Joined:
    Jul 3, 2018
    Messages:
    34
    Likes Received:
    2
    So I used this distance counter that @weboha posted about (I'll put a screenshot and the .bbdoc below) and I was just wondering if anyone knew how I could change the "undefined" and "NaN" text to the level numbers (like level 1 to level 2).

    Also, does anyone know how I could make the progress bar finish right as a level is complete?

    Thanks

    https://www.dropbox.com/s/k3hhs1u3ervbx1q/distance.bbdoc?dl=0

    Screen Shot 2019-04-08 at 7.39.03 PM.png
     
  2. weboha

    weboha Avid Boxer

    Joined:
    Aug 8, 2018
    Messages:
    239
    Likes Received:
    178
    use this code for begin to game

    if(Settings['level'] === undefined){
    Settings['level'] = 1;
    }
     
  3. Bilz636

    Bilz636 Avid Boxer

    Joined:
    Oct 5, 2015
    Messages:
    313
    Likes Received:
    182

Share This Page