How do I Use the progress bar

0 favourites
  • 2 posts
From the Asset Store
Progress\Loading Bar. Now Load you game like a Professional.
  • 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?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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".

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)