Forum rules - please read before posting.

Loading screen crash

Hi.

I'm trying to add a loding screen to my game between the scenes but I have an error message.
I made a simple scene with a camera and a srpite taking the whole screen.

The error message I get is :

NullReferenceException: Object reference not set to an instance of an object
AC.Sound.SetMaxVolume () (at Assets/AdventureCreator/Scripts/Logic/Sound.cs:277)

I firstly tried a loading screen using Unity UI and had the same message.

Am I missing something?

Comments

  • Not at all, it could well be a bug.  What if you use a scene that's been set up for AC (i.e. one with "Organise room objects" clicked in the Scene Manager)?
  • Also tried it already. Had the same issue.
  • I tried with the 2D demo game, just duplicating the scene and adding a hotspot to change scene, and made the same loading screen. It worked.

    I noticed that the difference is that I have music playing accross scenes. So I tried disabling the "play accross scene" options on my song in my project and it worked!

    But it's not a solution for me as I want the music to continue playing even if I have a loding screen. Is there something I should do to make it work with the loading scene?
  • Ok, after these different tries, I went back to normal and now I don't know why but it works even if I still get the same error message...
  • OK.  I'm glad it's at least working for you now (sort of), but rest assured I will see this fixed for the next update.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.