Jump to content

Sprite shadow render on top if sprite belongs to group.


Gibson001
 Share

Recommended Posts

Hi,

 

as I mentioned in the title I have problem with sprite shadows if sprite belongs to group. To make shadow i used this example:

http://examples.phaser.io/_site/view_full.html?d=display&f=sprite+shadow.js&t=sprite%20shadow

 

but when I add sprite to group then shadow renders on top of sprite. Here is jsfiddle showing my problem:

http://jsfiddle.net/u3mGL/6/

 

Any idea how to fix it?

 

P.S. I solved this partially by adding tinned sprite firstly and then normal sprite as a child, but this is not good for me because now i can't change, for example, alpha in parent and child independently (or can I?).

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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