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

Get help using Construct 2

Post » Tue Feb 21, 2017 8:00 am

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:

Thanks in advance
Posts: 1
Reputation: 175

Post » Tue Feb 21, 2017 9:57 am

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
Banned User
Posts: 1,229
Reputation: 34,945

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests