experience bar

Get help using Construct 2

Post » Wed Feb 01, 2012 9:27 pm

I'm having an unusual problem for me, as I can't get an experience bar to work. I have a red horizontal bar, maximum 200px width. I have XPstart, XPend and XP, representing current level start XP, next level start XP and current XP respectively. now. how do I calculate the bar width. this is basic math for crying out loud :(

Inb4
ranma2012-02-01 21:40:06
B
81
S
50
G
11
Posts: 555
Reputation: 13,579

Post » Wed Feb 01, 2012 10:38 pm

(XP - XPstart) / (XPend - XPstart) * 200
B
81
S
50
G
11
Posts: 555
Reputation: 13,579

Post » Wed Feb 01, 2012 10:38 pm

great, thanks ranma!
B
81
S
50
G
11
Posts: 555
Reputation: 13,579

Post » Wed Feb 01, 2012 10:45 pm

B
12
S
3
G
3
Posts: 73
Reputation: 2,647

Post » Wed Feb 01, 2012 10:57 pm

why the frowny face? :D
B
81
S
50
G
11
Posts: 555
Reputation: 13,579

Post » Wed Feb 01, 2012 11:06 pm

You found out the answer by your own or you be trollin'?
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219

Post » Wed Feb 01, 2012 11:48 pm

More like:
Image ImageImage
B
167
S
50
G
160
Posts: 8,168
Reputation: 103,432

Post » Thu Feb 02, 2012 12:05 am

@7soul by myself waiting for at least half that quick response before started trolling. cmon a little bit of sense of humor please!

@newt OMG is that Simon Cowell??ranma2012-02-02 00:06:24
B
81
S
50
G
11
Posts: 555
Reputation: 13,579

Post » Thu Feb 02, 2012 12:18 am

Actually I think it is. Seems /b/ does have some skills after all.
Image ImageImage
B
167
S
50
G
160
Posts: 8,168
Reputation: 103,432


Return to How do I....?

Who is online

Users browsing this forum: giorgio1982 and 5 guests