Jump to content

BUG:animationFrame is undefined


ddabrahim
 Share

Recommended Posts

  • 2 months later...

I know this question is from February, but I just encountered the same issue when trying to type out the tutorial on my own, and the solution is pretty straight forward, so I wanted to share since this post pops up first on a Google search.

If you encounter this error. Ensure that you tell load to create a spritesheet and not an image: 

       this.load.spritesheet('dude', 'assets/dude.png', {frameWidth: 32, frameHeight: 48});

And NOT:

      this.load.image('dude', 'assets/dude.png', {frameWidth: 32, frameHeight: 48});

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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