playMaker

Author Topic: Splash Screen Loading Bar [SOLVED] {now an asset}  (Read 6900 times)

HeathClose

  • Full Member
  • ***
  • Posts: 226
Splash Screen Loading Bar [SOLVED] {now an asset}
« on: February 02, 2017, 05:39:23 PM »
So I've done some looking around on the forums for some answers on how to create a loading bar for my splash screen... and I'm not finding a solid answer... there was talk about stream progress for level and then it said not to use that, there was some stuff about async loading... all in all... I need some solid direction...

How do I create a loading bar for my splash screen?  Is this possible?  If not is there an asset someone knows about?
« Last Edit: April 23, 2017, 01:00:28 PM by HeathClose »

HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: Splash Screen Loading Bar
« Reply #1 on: February 04, 2017, 11:41:29 AM »
anybody know how to make a standard splash screen with a loading bar for a mobile game?  I want to finish this project by monday if anyone can help...

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 713
    • Flashing Lights
Re: Splash Screen Loading Bar
« Reply #2 on: February 04, 2017, 12:26:06 PM »
The simple version with Playmaker only,
create a scene that is first in Build settings, that loads the game scene, while doing it you can put an image on a screen. This is without animated loading.



Also there is this shared script (thanks to Martin):
https://madewith.unity.com/stories/free-loading-screen-manager-script

You can control it with SendMessage.
This “Loading” scene can’t be the first scene (index 0), I put it as last.


HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: Splash Screen Loading Bar
« Reply #3 on: February 04, 2017, 08:40:39 PM »
The simple version with Playmaker only,
create a scene that is first in Build settings, that loads the game scene, while doing it you can put an image on a screen. This is without animated loading.



Also there is this shared script (thanks to Martin):
https://madewith.unity.com/stories/free-loading-screen-manager-script

You can control it with SendMessage.
This “Loading” scene can’t be the first scene (index 0), I put it as last.

Ok... so I looked at this video... I'm assuming the send message is for changing that number he said you have to change to match the scene being loaded, correct?

What you said about the "loading" scene can't be scene zero has me a bit twisted...

So if I have a scene that loads a persistant music player with don't destroy on load at scene 0 with the same graphic as the splash graphic in the player settings so it looks like the splash screen hasn't stopped yet... and it has an action to load scene 1 (main menu), what "loading" scene can't be scene zero.. the one I'm loading, or the one with the script on it?

I think what you're saying is... use the scene 0 i have that loads the player and matches the splash graphic... have it load the scene with the script on it with the same matching splash graphic and the loading bar and whatnot and let that load scene 1 (main Menu) correct?

HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: Splash Screen Loading Bar
« Reply #4 on: February 04, 2017, 09:28:35 PM »
The simple version with Playmaker only,
create a scene that is first in Build settings, that loads the game scene, while doing it you can put an image on a screen. This is without animated loading.



Also there is this shared script (thanks to Martin):
https://madewith.unity.com/stories/free-loading-screen-manager-script

You can control it with SendMessage.
This “Loading” scene can’t be the first scene (index 0), I put it as last.

or you're saying send message is that that little script that he said calls the function from the loading scene script but didn't share...

HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: Splash Screen Loading Bar
« Reply #5 on: February 04, 2017, 10:00:21 PM »
so I put that send message fsm on the canvas with the script on it and used 1 as that is the scene i want loaded (the target scene).. the loading scene is scene 7, which is the number I changed in monodevelop at line 40 on the script... and the loading scene (7) just stays and never loads scene 1
« Last Edit: February 04, 2017, 10:02:05 PM by HeathClose »

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 713
    • Flashing Lights
Re: Splash Screen Loading Bar
« Reply #6 on: February 05, 2017, 06:54:34 AM »
Loading Screen manager script in Loading scene (last in build settings), this scene will be called when you do SendMessage LoadSceneNum.

Start scene (index 0), empty with black screen and one game object:
Load Start Process script with FSM and SendMessage action.

There you set which scene to load, it will then run that Loading scene which loads your desired one.

Later you can call the loading from any scene with same logic, have that Loading screen script with FSM.

Only thing is you set the index number of your Loading scene in the line 40, like you did.

Hope this makes sense  :D

HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: Splash Screen Loading Bar
« Reply #7 on: February 05, 2017, 11:28:31 AM »
everything is set up now... but scene 0 doesn't load... in the hierarchy is just says scene 0 not loaded and stays there...

HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: Splash Screen Loading Bar
« Reply #8 on: February 05, 2017, 11:36:24 AM »
BOOM!

it works... after all that I must have changed up the build settings screen order... thank you for you help!

HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: Splash Screen Loading Bar [SOLVED]
« Reply #9 on: April 23, 2017, 12:59:52 PM »
for anyone wanting to set up loading screens easily.. this script has been turned into an asset by the author... easy peasy...

http://u3d.as/M1t

HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: Splash Screen Loading Bar [SOLVED] {now an asset}
« Reply #10 on: April 23, 2017, 01:28:53 PM »
the directions after set up say this

4. Replace all calls to load a scene in your game with
LoadingScreenPro.LoadScene(string) or LoadingScreenPro.LoadScene(int)

This last step is different based on your version of Unity. The original Unity method call you used to load levels will have to be replaced by the method call above. The method you will have to replace is either going to be:

Unity >= 5.3
Application.LoadLevel()
Application.LoadLevelAsync()
Unity < 5.3
SceneManager.LoadScene()
SceneManager.LoadSceneAsync()

how would I modify a load level action to include this change?
« Last Edit: April 23, 2017, 01:36:48 PM by HeathClose »

HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: Splash Screen Loading Bar [SOLVED] {now an asset}
« Reply #11 on: April 23, 2017, 06:53:12 PM »
Actually, the developer is willing to support Playmaker...

https://forum.unity3d.com/threads/loading-screen-pro.464875/#post-3043823

How do we go about making this happen?

HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: Splash Screen Loading Bar [SOLVED] {now an asset}
« Reply #12 on: April 24, 2017, 05:08:04 PM »
I assume I can't just share an action with him like he's requesting...