#how do i make progress bar?

8 messages · Page 1 of 1 (latest)

fossil starBOT
#

studio** You are now Level 2! **studio

dense gust
#

Well this is split up in 2 parts

#

Yet before I start, make sure the progress UI when full is 1,0,1,0 (so both on scale)

#

Then 1. We do some math to translate the numbers into %. Which is done by doing
C / T

#

(Yes this isn’t % yet we need it divided by 100 anyways, so why first multiple times 100 before we divide by 100.
C = amount of completed
T = total)

#

So let’s say you completed 1/4 quests then it returns 0.25 (25% of 1)

#

Then step 2. Turn the bar’s X in it’s size to that number

#

Then just make sure it’s anchored the right way so it doesn’t look weird