Jump to content

Smooth Preloader


frankieboywonder
 Share

Recommended Posts

Hi, we're building a slot game that loads 15-20 texturepacked images, 20+ sound files, and maybe a dozen spine files. Some of these are obviously bigger than others, and so due to the nature of counting the files instead of the bytes, the preloader looks very choppy as it occasionally pauses (and so looks stuck) on a large texture.

I wondered if anyone had any tips or techniques for smoothing out the progress bar animation?

Thanks

Link to comment
Share on other sites

Compute the bytes loaded / bytes total - and show that as a function of time elapsed.  Similar to how a large OS update shows its progress.  It will be wrong for 99.99% of the time, but tend towards accuracy as it approaches completion!

That said - don't fix what isn't broken - lumpy loaders are cooler.  If a loader is too smooth some users will assume it's fake and become disgruntled.  Plus anticipation of a lump completing is oddly entertaining.  Loader psychology is weird and fascinating.  Some loader progress designs aren't linear, some include minimum progress updates, etc.  Ever noticed how many AAA loaders zoom the beginning then get slower at the end?  Expectation manipulation!

Link to comment
Share on other sites

if is for desktop app, just use nodejs https://nodejs.org/api/fs.html
You read folders and files, storing all metas somewhere (size,type,hash,path....), and you can make your loader with those meta and track smoothly the progress.
For web (you dont have nodejs)  so you will need manually add those meta informations.
Maybe a task before publish, to get those metas.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...