Ashish Posted February 6, 2018 Share Posted February 6, 2018 I want to fill the color in specific tile. The method available in phaser is putTile(), But I want to fill any color I want. In canvas there is method called fillrect(). Please suggest me some solution. Link to comment Share on other sites More sharing options...
casey Posted February 7, 2018 Share Posted February 7, 2018 You can tint sprites . Not sure it'll work on tiles, but I think so. varName.tint = 0xFFFFFF; (= default colour/untinted) varName.tint = 0xE6E2F4; (= sample colour tinted). Example: https://phaser.io/examples/v2/sprites/sprite-tint Link to comment Share on other sites More sharing options...
Recommended Posts