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?
Posts: 222
Reputation: 2,624

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".
Posts: 962
Reputation: 18,026

Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 5 guests