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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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