Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Loading Screen [TIER2]

Author
Message
Daqs
9
Years of Service
User Offline
Joined: 23rd May 2015
Location:
Posted: 12th Jun 2015 19:50
I have certain game states in my game such as MainMenu, OptionsMenu, etc. which get called at their appropriate time.

When my GameLevel starts after MainMenu, there is a lot of assets being loaded onto the screen such as agk::LoadImage, agk::CreateSprite, and other gameplay functions. I need a way so that I can check while all these assets have loaded so that I can create a loading image on the screen.

Now, I am not talking about creating a splash screen for the game. I'm asking a way to check if assets have been loaded or not so that instead of making player wait on the blank (frozen) screen I can show a photo which says "Loading" while the level loads.

Thanks!
Kendor
21
Years of Service
User Offline
Joined: 31st Jan 2003
Location: Malta
Posted: 12th Jun 2015 20:30
You would need to sync before starting loading the game assets.
i.e. show loading sprite -> sync() -> load game assets

If you want also to include a loading bar (if you have that much loading going on), then the syncs need to be included between your loading routines. Example:




Daqs
9
Years of Service
User Offline
Joined: 23rd May 2015
Location:
Posted: 12th Jun 2015 20:41
Much appreciated. Very well explained. Thanks!

Login to post a reply

Server time is: 2024-11-16 18:06:29
Your offset time is: 2024-11-16 18:06:29