Power Bar question

For questions about using Classic.

Post » Sat Jul 16, 2011 11:06 am

Hi all

I'm trying to make a speed launch bar which goes between min 700 to max 1300 values continuously until player press x. When player press players object gets that value.(Player tries to press it when it's near to max value)

My question is how can I make a gui effect? Like a bar which should have maximum width when value reaches to 1300. And should have 1 width when value becomes 700. Should have half width when value is 1000 . Like that.

I know it should be very simple math. But believe me, I'm very bad at math , especially time to time I forgot even simple math.

Thank you very much.
B
7
S
1
G
1
Posts: 76
Reputation: 904

Post » Sat Jul 16, 2011 11:19 am

Hi again

I think I did it :) haha just a minute after I posted topic.

I think It should be like (currentvalue-minvalue)/(maxvalue-minvalue)*bar's total width

Thank you again :)
B
7
S
1
G
1
Posts: 76
Reputation: 904


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests