Jump to content

Animation from graphics. Bug in 2.1.3+, doesn't work below 2.1.3


dieow
 Share

Recommended Posts

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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