using plyGame. How to load loading screen to proceed to another scene

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
davidsibya08
Posts: 57
Joined: Sun Feb 12, 2017 2:11 pm

using plyGame. How to load loading screen to proceed to another scene

Post by davidsibya08 »

Good day. I'm trying to use plyGame. How can I use the loading Screen of plyGame to load the next scene/level?
The situation that I've got is that after I added 'LoadLevel' it directly load the level i wanted and with that, no loading screen is loaded.
:(
User avatar
Tony Li
Posts: 22062
Joined: Thu Jul 18, 2013 1:27 pm

Re: using plyGame. How to load loading screen to proceed to another scene

Post by Tony Li »

Hi,

Before using the Flow > System > LoadLevel block, use the GUI > Screens > Show LoadScreen block.

(Also use the Dialogue System > Lua > Level Will Be Unloaded block to tell the current scene that it's about to be unloaded & destroyed. This way if you have any Increment On Destroy components that increment quest counters, they won't increment their counters due to the unload.)

After LoadLevel, use GUI > Screens > Hide LoadScreen in a blox in the new scene.

If you've added a Persistable Dialogue Manager component to your Dialogue Manager, plyGame should apply the saved changes from the previous level to the new level (e.g,. the player's stats).
Post Reply