Sign in to follow this  
ddabrahim

BUG:animationFrame is undefined

Recommended Posts

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});

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.