Hi,
I am new at PlayCanvas, and making a game that allows the user to change scenes once the criteria had been fulfilled.
However, after teleporting to the new scene , there is this error
TypeError: Cannot read property ‘play’ of undefined
at scriptType.PlayerAnimationHandler.setDirection
at scriptType.PlayerAnimationHandler.keyChange
at Keyboard.fire
at Keyboard._handleKeyDown
I don’t know what is wrong. Any help is appreciated
Link : https://playcanvas.com/editor/scene/1012568