gamkedo-la / robo-explorer-2

JS Phaser game led by Rodrigo in Lighthouse
0 stars 0 forks source link

Level2.scene is undefined #1

Closed rodprogramdev closed 10 months ago

rodprogramdev commented 10 months ago

Testing how to setup a scene switching and encountering this issue with phaser scene. image

rodprogramdev commented 10 months ago

Was able to solve this issue by creating a class and a closure for the onCollision function with the obstacle to switch from one scene to another. image image image

rodprogramdev commented 10 months ago

Called the onCollision on line 91 collider physics. image