Politybuilder Posted June 16, 2017 Share Posted June 16, 2017 In the Phaser documentation for groups it says that you can do the following: group.create(x, y, "spritesheet", index) ...where index is the frame on the spritesheet you want be be included in the group. However, when I use this it just displays the entire spritesheet. Link to comment Share on other sites More sharing options...
rich Posted June 16, 2017 Share Posted June 16, 2017 If the whole sheet appears then the index you've given wasn't found. An index should be an integer if you're using a traditional sprite sheet, or it should be a string if you're using a texture atlas. snowbillr 1 Link to comment Share on other sites More sharing options...
samme Posted June 16, 2017 Share Posted June 16, 2017 Also make sure you use load.spritesheet instead of load.image. Link to comment Share on other sites More sharing options...
Recommended Posts