How do I Use the progress bar

Get help using Construct 2

Post » Tue Jun 16, 2015 9:59 pm

So far it seems that the progress bar won't move smoothly it jumps from 0 to a final number, I've been trying to make it move fluidly with a variable but it seems like if the variable moves quickly (increasing every tick for example) the progress bar won't change until the variable stops changing. Can anybody help with this? Or will I just have to try slowing down the speed the variable changes and hope that works?
B
22
S
8
Posts: 203
Reputation: 2,059

Post » Tue Jun 16, 2015 11:35 pm

I'm not at my computer, but this should get you where you need to be. The loading bar goes from 0 to 1.0, so you can use interpolation to make it move smoothly between the values.

So something like

Object set width to lerp(progress, progress*maxWidth, 2*DT)

Where max width is however wide your progress bar will be at completion. Adjusting the 2 will change how quickly the bar moves. I don't remember the value construct uses for loading progress, but substitute that with "progress".
B
103
S
38
G
19
Posts: 962
Reputation: 17,996


Return to How do I....?

Who is online

Users browsing this forum: SnipG and 8 guests