|
| 19 Oct 2015 10:51 PM |
| I know some games have a loading bar and it says something like "Waiting for assets". What are they using to "wait" for these assets and make sure they're loaded until they actually let you play the game? |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2015 10:55 PM |
| I think they have a value, and have a waitforchild for everything, and once it has loaded it adds 1 to the value |
|
|
| Report Abuse |
|
|
Bloxkes
|
  |
| Joined: 23 Sep 2015 |
| Total Posts: 477 |
|
|
| 19 Oct 2015 11:02 PM |
They use this:
http://wiki.roblox.com/index.php?title=API:Class/ContentProvider/PreloadAsync |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2015 11:10 PM |
| How do they figure out which one has been loaded already in the table? |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2015 11:18 PM |
| It could be that the are loading data using data store and after it loads they increase a value or something |
|
|
| Report Abuse |
|
|
Sypr
|
  |
| Joined: 14 Feb 2013 |
| Total Posts: 556 |
|
|
| 20 Oct 2015 11:26 PM |
| useing game:GetService("ContentProvider"):PreloadAsync() with workspace:getchildren()? |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 21 Oct 2015 12:29 AM |
"useing game:GetService("ContentProvider"):PreloadAsync() with workspace:getchildren()? "
No.
It is used to load assets such as decals and sounds. |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2015 02:43 AM |
To make the bar, the foruma is...
For percentage: local percent = math.floor(current/max * 100) .. "%"
For changing size: local size = current/max * width_of_frame |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2015 04:32 AM |
i believe he has something with the contentprovider service
he wants to wait until all assets are loaded for the game so ppl don't see no blank stuff
ya
there is a property like that some "RequestQueue" thing or something but not really sure if it exists, SHIFT+F6 shows it alrite |
|
|
| Report Abuse |
|
|