Skip to content
Advertisement

Tag: sprite

Phaser 3: load spritesheet for animation with unequal dimensions

Im trying to work with the phaser 3 framework. In order to load a spritesheet and create its animation I first load the spritesheet: this.load.spritesheet(‘player’, ‘assets/spritesheets/player.png’,{frameWidth:16,frameheight:16}); then I create the animation as follows: This works fine but if I have unequal dimensions such as I receive the following error: if i print console.log(this.anims.generateFrameNumbers(“player”)); the output is: however for the unequal

Advertisement