Jump to content

Using a two dimensional spritesheet


Recommended Posts

I have a PNG spritesheet I want to use in Phaser.


But somehow I'm only able to access the first "row" of it.


This is how I tried it:

game.load.spritesheet( 'main', 'res/my_sprite_sheet.png', 32, 32);...game.add.sprite( 10, 10, 'main', 100);

One row only has 30 frames, so I guessed, a bigger number would automatically overflow and lead to the next row.

Link to comment
Share on other sites

  • 1 year later...

  • Recently Browsing   0 members

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