Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

How to make Scene Transitions!

A Tutorial for Baldi's Basics

No ads for members. Membership is 100% free. Sign up!
Hmmm haven't done and tutorial in some time and it seems that Flipper's Colorful Mansion is only one of the mods that have this so here. If you want more tutorials regarding Flipper's Colorful Mansion than feel free to

1. Make a graphic (sprite, image etc.) 

2. Make an animation for the image.

3. If your graphic doesn't have an animation component then go to animation, make your animation (you'll need to also name your animation) and Unity will automatically makea  animation component with the Controller.
There should be 2 animations for this, one for going in, and another for going out.
4. Now go to the Animator window and then make a Parameter called "Start" or something. Make sure the animation for going has Loop time on (click it and turn it on if it isn't) and its Layer State is default (meaning it will play on Awake) if not right click it and then "Set Layer State to Default"

5. Add a transition to the in & out animations and add a condition, now select the parameter start

6. Make a new script and add a Animator variable. (Make sure you set this in the inspector). Also MAKE SURE you have "using UnityEngine.SceneManagement"

7. To load your scene to the next scene instead of using SceneManager.LoadScene();
let's use SceneManager.LoadSceneAsync, because SceneManager.LoadScene pauses the scene while loading the next one, while LoadSceneAsync continues the scene while loading the next scene. Which is what we want for making this transition

8. Make a IEnumerator (if you can't see it, make sure you're using System.Collections)
And in it make a local variable with a type "AsyncOperation" this will us info on the progress on our operation for loading the scene
For this tutorial it'll be called operation
now code
SceneManager.LoadSceneAsync("scene");
while (operation.progress < 50% (depends on what you want))
{
your code.
}
transition.SetTrigger("ParameterName");

9. Finally make a prefab of your transition and go to the scene you want to transition to and MAKE SURE TO PUT IT IN THE SCENE OR IT WONT WORK

Now your done :)
Sign up to access this!

Embed

Share banner
URL da imagem
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
RealT5mpler
RealT5mpler Joined 10mo ago
Offline
227 points Ranked 62962nd
16 medals 4 rare
  • Returned 1000 times Medal icon
  • 25 posts awarded Exemplary Feedback Medal icon
  • Submitted 15 Tutorials Medal icon
  • 50 posts awarded Exemplary Feedback Medal icon
  • One month a member Medal icon
  • Returned 100 times Medal icon
Tutorial

Submitter

RealT5mpler avatar
RealT5mpler Joined 10mo ago
Not on right ok
227 points Ranked 62962nd
16 medals 4 rare
  • Returned 1000 times Medal icon
  • 25 posts awarded Exemplary Feedback Medal icon
  • Submitted 15 Tutorials Medal icon
  • 50 posts awarded Exemplary Feedback Medal icon
  • One month a member Medal icon
  • Returned 100 times Medal icon
RealT5mpler
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Details

Difficulty Level
Intermediate

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 1
  • 385
  • 1
  • 2mo

More from Submitter

WiPs by Submitter

More Decompile Tutorials