Jump to content

change the frame of a sprite


nicwins
 Share

Recommended Posts

Hi I have a spritesheet consisting of 2x images.

When my player moves over the sprite I want it to change to the other image.

I know it's probably very simple but I cannot do it.

this.load.spritesheet('stickers','assets/images/stickers01.png', 76, 96, 2);  //as you can see it has two indexes (0 & 1)

And what is the link to see all the phaser syntax? that would help

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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