microspace Posted October 4, 2018 Share Posted October 4, 2018 Is there a way to set transparency of a single tile inside game loop? I'm building some sort of level constructor and I want to find a way to grey out tiles. Link to comment Share on other sites More sharing options...
GideonSam Posted October 4, 2018 Share Posted October 4, 2018 set alpha property Link to comment Share on other sites More sharing options...
microspace Posted October 5, 2018 Author Share Posted October 5, 2018 Thanks for pointing in right direction var tile = this.map.getTile(10, 9, this.flour); if (tile) { tile.alpha = 0.5; } Link to comment Share on other sites More sharing options...
microspace Posted October 8, 2018 Author Share Posted October 8, 2018 But still I can't set opacity on tile inside game loop. Only on level creation. Link to comment Share on other sites More sharing options...
Recommended Posts