Heavy bugs within the 'scene change' functionality


#1

I am currently trying to make a little online storytelling project (well ‘little’ minut-wise but ‘huge’ beneath :-/ cf The exact FPS-conversion from Blender to PlayCanvas? as well). Anyways: I have struck some major issues concerning ‘scene change’, and here are the first two most relevant of them:
A) While launching a set of scenes I experience that the the main time, blurs from one scene to another, where the main time, should be resetting from scene to scene (sometime sound is firing way to early in scene 2, as the time flows over from scene 1).
B) Occasionally I experience that merely clicking on a launched scene can restart the previous scene, without me coding any scripting; to do such action (can it be HTML/DOM interaction related?).


How to load assets runtime
#2

Without the project link or a reproducible small sample, it’s hard to see what the problem is.

Some things to remember about ‘scene changing’

  • PlayCanvas doesn’t have the concept of changing scenes. You start from one scene, additively load another scene and delete the Root object of the original scene.
  • When deleting the Root of a scene and entities, remember to remove all event listeners to entities, input etc.
  • The scene Root object is not the same as this.app.root. It’s a child of it.

#3

Ok, I will try and tidy up events etc (could have posted example, but I think its ok for now … will try and see if my change-scene buttons from prior scenes can be set turned-off/inactive) + use the root-tip to see if I can split up timers


#4

i concur with Thomas, since about 2017 ive had issues with scene changing, often i wont change or restart scene to save time because the way you load a scene seems excessive, a lot of errors not just with events, but with renderer as well, ill make a test project


#5

ok, yqu … sounds great