San4er Posted September 9, 2014 Share Posted September 9, 2014 I can make a shadow to a text.Now I need to make a shadow to the Image or Sprite.I have an idea how to do it using Alpha Mask and bitmapData, but would like to know are there any ready solutions?If not, I'm gonna make it and post here in a few days, maybe it will even become a default function of Phaser, cuz it's kinda useful Link to comment Share on other sites More sharing options...
rich Posted September 9, 2014 Share Posted September 9, 2014 Create another Sprite, offset it from the original Sprite, and tint it black. Link to comment Share on other sites More sharing options...
rich Posted September 9, 2014 Share Posted September 9, 2014 Here, like this: http://examples.phaser.io/_site/view_full.html?d=display&f=sprite+shadow.js&t=sprite%20shadow Link to comment Share on other sites More sharing options...
San4er Posted September 10, 2014 Author Share Posted September 10, 2014 Thanx. I looked in examles a day ago and didn't find this one Now I'll think how to make the shadow 'softer'. Link to comment Share on other sites More sharing options...
Recommended Posts