fbpx

Phaser Basics

Phaser Basics

This content is protected, please login and enroll course to view this content!

11 thoughts on “Creating an Animation”

  1. When I load and create the image, it shows the sprite sheet (multiple boy) rather than just 1 like in the video.

    1. That is usually because the height and width are not set correctly. Also, the local server tends to cache the images rather aggressively. Make sure you clear the cache. Control-f5 on windows usually does the trick.

      1. I checked to make sure both width and height match your example, and I clear the cache, but still no change.

      2. And when I check for bugs with developer console, it saids

        phaser.min.js:1 SpriteSheet frame dimensions will result in zero frames.

  2. Well, it seems the image got resized through some optimization of either the website or through the CDN. I’ve now added it in a zip file at the correct size.

  3. I changed the framewidth value , that was the main reason that it did not work . Thanks for your answer William . I learnt a lot .

Leave a Reply

Your email address will not be published. Required fields are marked *