dieow Posted November 22, 2014 Share Posted November 22, 2014 Hello, I'm trying to make a spritesheet from Phaser.Graphics. Here is an example of the problem http://jsfiddle.net/718ekhje/3/ (Please look at the result and then comment out line 29) Basically I'm making Phaser.Graphics object, filling it with squares in different colours (so I have colourful line) and generating PIXI.Texture from it. Then I'm adding this texture to Phaser.Cache via cache.addSpriteSheet. Now I should be able to add sprite using this key passed to cache, but no... Nothing is showing up. I found out that I need to add Phaser.Sprite with PIXI.Texture as the key, before my animation, to make it work. Maybe there is other way. What I want to do, is to use Phaser.Graphics (PIXI.Graphics) as spritesheet for particles. Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts