I am trying to make a loading bar that loads depending on how much objects are loaded in. For example, if half of the objects in the game are loaded, the bar would be half way. I have tried to look for tutorials, but no one is making a loading bar like this, and I have no idea how to do this.
Idk, perhaps get a ratio (AmountLoaded/NumberOfObjectsToLoad)
That ratio will be a number between 0-1. If it’s 1 it will be done, 0.5 and it will be half way, etc.
So, now we can multiply the max size on the X axis of the loading bar by this ratio. So
XSize*ratio
Now we have the new size on the X axis. We just gotta apply it.
I have not tested this but I think it should work.
Happy coding!
1 Like
Thanks! Let me test this out first before I make this the solution.
Alright. If you stumble across an issue I most likely won’t be able to help as I’m on a hockey camp, and will be for a some hours.
How can we get the numbers used in the formula? How would we get the “AmountLoaded” number and the “NumberOfObjectsToLoad”?