Ninjadoodle Posted March 30, 2015 Share Posted March 30, 2015 Hi guys Just wondering if there is any way for the preloader to display what's being loaded? Thank you for any suggestions Quote Link to comment Share on other sites More sharing options...
enpu Posted March 30, 2015 Share Posted March 30, 2015 You mean what exact file is loaded? That's a bit hard, because the loader is loading multiple files at same time. Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted March 30, 2015 Author Share Posted March 30, 2015 Hi @enpu Not necessarily the file, but what kind of file ... Loading GraphicsLoading Sound FXLoading Music It's ok if this isn't possible, just wondering I notice that the loader slows down a lot towards the end, as I think it's loading a big music file. It seems like the loader bar isn't proportional to the stuff being loaded. I think I need to reduce the size of my music files. Quote Link to comment Share on other sites More sharing options...
enpu Posted March 30, 2015 Share Posted March 30, 2015 Yeah the loader first loads graphics, then audio.It might be possible to get the info when it starts to load first audio file, but then it might still be loading some other graphic files.Do you think that info is useful? I can add it to the next version. And also the engine does not know which audio files are used as music and which are sound effects. Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted March 30, 2015 Author Share Posted March 30, 2015 Hi @enpu Thank you for the offer, but don't spend you time on it (you're very busy as it is). I was just wondering about what's possible. Instead, I will reduce the size of my music files to speed up loading. I do have a quick question tho ... Do you bother using Atlases? Or packing all your graphics onto one sprite sheet? I've been told that this loads a lot faster, then loading a lot of separate images. Do you think it's worth it? It seems a bit silly Quote Link to comment Share on other sites More sharing options...
enpu Posted March 30, 2015 Share Posted March 30, 2015 Yes i usually package my sprites into sprite sheets using Texture Packer:https://www.codeandweb.com/texturepacker Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted March 30, 2015 Author Share Posted March 30, 2015 Hmmm seems like a lot of extra work. What happens when for example you have ... - a tree- a dog animation- a car ... on the same sprite sheet? Do you have to extract the frames from the correct positions using code? What about when all the sprites have different sizes? Thank you for you help btw! Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted March 30, 2015 Author Share Posted March 30, 2015 Got it, I didn't understand the use of the json file, now it makes sense It's actually not hard, like I thought. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.