How do I add a score bar that adds points when filled.

  • Hey everyone

    I'm still a completely new Beginner and created my first game following a tutorial step by step, unfortunately I only learnt 15% of what was taught and find it difficult to wrap around certain concepts, so a detailed step by step instructions would help me out greatly.

    What I'm trying to create is a Bar that has a specific amount of points next it. As the player scores the bar will fill up, once the bar fills up , the player will gain the points and it will be added to the total score. A new bar will be created which will be harder to fill but the points will be higher.

    Here is a link to a screenshot of what I've done so far:

    http://i.imgur.com/WaqOJvZ.jpg

    Thanks in advance

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There are a few ways to do it.

    The easiest is to create a sprite with maybe 10 animations that show the bar growing until it is filled.

    When points reach a certain level the next animation is played and so on until the points reach the desired level and the sprite is filled.

    Global variable Score=0

    On Score = 100 set ScoreBar animation to Bar1

    Set ScoreText =Score

    On Score = 200 set ScoreBar animation to Bar2

    Set ScoreText =Score

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)