Experience bar

Discussion and feedback on Construct 2

Post » Thu Feb 02, 2017 12:49 am

Hi guys, I'm trying to make an experiment bar
That alemnte the limit to each e level

example
At level 1 it has to be 100 xp to win
At level 2 it has to be 200 xp to win

But when it does, the xp bar gets bigger at each level

Has a way to make an xp bar like I want
educao,pessoa que gostam de ajudar uns aos outro

Education, person who likes to help each other
B
12
S
6
G
11
Posts: 33
Reputation: 6,756

Post » Thu Feb 02, 2017 1:25 am

You can use the progress bar object.
Sprites
or even a sprite font.

And any combination of those as well.

The main thing, is to work with percentages. %. You level up at 100% experience. This allows the progress bar to remain the same size and show the same information. You can then use a percentage to determine where the progress bar should show.

I made a VERY ROUGH capx to give an idea of what im talking about.

in a real project I would probably have two separate sprites where one is hidden beneath and stretches to fill this way I am in control of the visuals completely and retain the accuracy of the built in progress bar.


https://dl.dropboxusercontent.com/u/583 ... ample.capx
B
28
S
8
G
1
Posts: 226
Reputation: 2,865

Post » Thu Feb 02, 2017 1:46 am

I like the more you have to use scripts because they are kind of better
Or if you can not change the sliter bar
educao,pessoa que gostam de ajudar uns aos outro

Education, person who likes to help each other
B
12
S
6
G
11
Posts: 33
Reputation: 6,756

Post » Thu Feb 02, 2017 2:19 am

Tylermon wrote:You can use the progress bar object.
Sprites
or even a sprite font.

And any combination of those as well.

The main thing, is to work with percentages. %. You level up at 100% experience. This allows the progress bar to remain the same size and show the same information. You can then use a percentage to determine where the progress bar should show.

I made a VERY ROUGH capx to give an idea of what im talking about.

in a real project I would probably have two separate sprites where one is hidden beneath and stretches to fill this way I am in control of the visuals completely and retain the accuracy of the built in progress bar.


https://dl.dropboxusercontent.com/u/583 ... ample.capx
educao,pessoa que gostam de ajudar uns aos outro

Education, person who likes to help each other
B
12
S
6
G
11
Posts: 33
Reputation: 6,756

Post » Thu Feb 02, 2017 3:57 am

Thank you. Thank you. Thank you.

Dude, it was perfect, thank you.
educao,pessoa que gostam de ajudar uns aos outro

Education, person who likes to help each other
B
12
S
6
G
11
Posts: 33
Reputation: 6,756

Post » Thu Feb 02, 2017 4:57 am

the arhur wrote:Thank you. Thank you. Thank you.

Dude, it was perfect, thank you.



Glad that helped! Good luck with everything. :D
B
28
S
8
G
1
Posts: 226
Reputation: 2,865

Post » Wed Oct 18, 2017 12:48 pm

@Tylermon Can you repost the example please. I think its needed :)
B
11
S
1
Posts: 35
Reputation: 533


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests