Jump to content

Phaser 3 animation not working


Recommended Posts


I am converting a Phaser 2 game to Phaser 3 and I'm stuck. Really irritating me now.

The code I am working on is here: https://github.com/wamballa/jetpac2019

All I want to do is create an animation inside a gameobject called Player.

I create this player object in src/scenes/Level1.js with new Player()

Inside the Player object ( src/object/player.js ) i used this.anims.create and then try to play it by pressing left with this.anims.play() but i get an error.

There error i get is: phaser.js:108624 Uncaught TypeError: Cannot read property 'getFirstTick' of null

Can anyone help me please?



Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...