Resetting Score On Restart

Discussion in 'How Can I...?' started by bluemoonstudios, Oct 11, 2016.

  1. bluemoonstudios

    bluemoonstudios Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    156
    Likes Received:
    56
    Hi,
    I have been working on a non scrolling game and each level is a seperate world. All the worlds use the same world UI where I have placed a score label. the settings for the label are:
    Function = Score
    World = All
    Score Type = Points
    Amount = Current

    When you play for the first time, it works great, but when you die and restart the game the score does not reset back 0.

    Is this a bug with buildbox? Or am i doing something wrong?

    I have buildbox version 2.2.5

    Thank you for your help.
     
    Shawh likes this.
  2. bentforktech

    bentforktech Avid Boxer

    Joined:
    Oct 14, 2015
    Messages:
    138
    Likes Received:
    63
    How are your worlds set up? Are you advancing via checkpoints? Because if you are restarting from a checkpoint the game score continues. There are way smarter people on here that can dive further into this than I. But that would be the first place I started is looking at checkpoint status.
     
    Christoph likes this.
  3. bluemoonstudios

    bluemoonstudios Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    156
    Likes Received:
    56
    @bentforktech I am not using checkpoints, I am using menu jump to go from world to world, and on restart I am always starting from world 1
     
  4. Neverafter

    Neverafter Boxer

    Joined:
    Aug 21, 2016
    Messages:
    50
    Likes Received:
    5
    Do you want to go to world 1 when you restart? try to have the restart button go back to world 1 to
    reset the score
     
  5. bluemoonstudios

    bluemoonstudios Avid Boxer

    Joined:
    Oct 8, 2015
    Messages:
    156
    Likes Received:
    56
    @Neverafter thats how it is mate. It still does not reset. I am trying a different approach now using checkpoints, and it's working but for some reason when I go from scene 1 to scene 2 the objects move to the bottom of the screen. Fix one issue and another arises love it!
     
  6. Josephhohepa1

    Josephhohepa1 Boxer

    Joined:
    Oct 6, 2017
    Messages:
    2
    Likes Received:
    0
    Hey buddy I am having this same issue! Did you find a resolution for it?
     
  7. Vikas

    Vikas Avid Boxer

    Joined:
    Feb 24, 2019
    Messages:
    115
    Likes Received:
    103
    I am facing the same issue :-( Did you find a solution for it ?
     
  8. ramjetsy7

    ramjetsy7 Boxer

    Joined:
    Mar 3, 2017
    Messages:
    36
    Likes Received:
    8
    Untitled-2.png

    Does this method work for you? (The world is empty).
     
  9. Vikas

    Vikas Avid Boxer

    Joined:
    Feb 24, 2019
    Messages:
    115
    Likes Received:
    103
    Hi

    What do you mean by empty world ?

    My game is like this :
    Endless
    From world 1–>world 2–>world 3–> world 1...

    So what should I do in this case ?
     
  10. ramjetsy7

    ramjetsy7 Boxer

    Joined:
    Mar 3, 2017
    Messages:
    36
    Likes Received:
    8
    So you're facing a different issue to the OP.

    Don't know, sorry.
     
  11. Vikas

    Vikas Avid Boxer

    Joined:
    Feb 24, 2019
    Messages:
    115
    Likes Received:
    103
    No worries thanks
     
    Jaro likes this.

Share This Page