Load attributes from next scene

My problem with switching to the next level is, that some attributes for certain scripts aren’t loaded. You can see it in my project when you switch from the 4th to the 5th level. If you launch the 5th level, everything works normally.

https://playcanvas.com/editor/scene/1300808

How do I fix that problem

Thanks in advance

Hi @SayHiToMePls ,

I took a look at your project, the issue seems to be finding the player in the conveyor belt script, I fixed the issue of player rigidbody not being found in level 5, I made a attribute on the converyorBelt script and assigned the player entity to all the converyorBelt instances, there are no error now.

https://playcanvas.com/project/880488/overview/escape-the-lab

2 Likes

nah, it doesn’t work

Try to go from level 4 to 5 here:
https://launch.playcanvas.com/1331864?debug=true

Previously it was erroring out when I got on the belt and now it’s not, can you explain what “doesn’t work”?

Sorry, I had the same variable in my update function. Now it works :+1:

OK now, it doesn’t work from level 8 to 9. It has a problem with the shooting, specifically the particle system. What’s wrong there?