fire7side Posted October 3, 2015 Share Posted October 3, 2015 I'm trying to find out how to load a png spritesheet of 4 frames. Is there something for this or does it have to be a json file? Quote Link to comment Share on other sites More sharing options...
fire7side Posted October 3, 2015 Author Share Posted October 3, 2015 I read up on kittycatattacks tutorial and apparently I set the texture frame equal to a rectangle, so I guess I would define an array of rectangles to change frames and make the texture frame equal to it to change. Quote Link to comment Share on other sites More sharing options...
bruno_ Posted October 3, 2015 Share Posted October 3, 2015 See phaser examples in phaser website. There are samples for that. Quote Link to comment Share on other sites More sharing options...
d13 Posted October 5, 2015 Share Posted October 5, 2015 You can also use the `filmstrip` function from the Pixi SpriteUtilties library: https://github.com/kittykatattack/spriteUtilities Quote Link to comment Share on other sites More sharing options...
fire7side Posted October 5, 2015 Author Share Posted October 5, 2015 Thanks, I'll be looking into it, that looks like a useful class. Your tutorial has been very helpful, btw. The only thing I didn't like was putting all the code on the index page so that took a little while to split it up like Phaser does, or maybe you aren't kittykatattacks, but anyway you recommended it and it was helpful. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.