ylluminarious Posted July 25, 2014 Share Posted July 25, 2014 I'm trying to have a part in my game where the sprites have a gray overlay on them. I'm not sure how to do this with Phaser.I've also posted this question on StackOverflow: http://stackoverflow.com/questions/24959909/giving-sprites-an-overlay-in-the-phaser-framework Link to comment Share on other sites More sharing options...
hivernoir Posted July 26, 2014 Share Posted July 26, 2014 Not sure if this is what you want, but in the Phaser example files there is an example for sprite tinting. yourSpriteName.tint = colour; Or there is a gray filter example... var gray = game.add.filter('Gray');yourSpriteName.filters = [gray]; Hope this helpful! ylluminarious 1 Link to comment Share on other sites More sharing options...
horkoda Posted July 30, 2014 Share Posted July 30, 2014 hivernoir, related question:How about when you want to overlay it with another Sprite or primitive objects (i.e. lines, circles, etc)? EDIT: nevermind, just found the topic that answers my question Link to comment Share on other sites More sharing options...
Recommended Posts