nicwins Posted April 21, 2017 Share Posted April 21, 2017 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 More sharing options...
jjwallace Posted April 21, 2017 Share Posted April 21, 2017 greenJellyfish.frameName = 'greenJellyfish0010'; if you have a json with frame names Link to comment Share on other sites More sharing options...
nicwins Posted April 21, 2017 Author Share Posted April 21, 2017 I actually solved this with: sticker.frame = 0; Link to comment Share on other sites More sharing options...
Recommended Posts