Pragun Posted May 13, 2017 Share Posted May 13, 2017 Hi, I am fairy new to Phaser. I am using this.shadowTexture.context.fillRect() to fill my background with black colour. I want everything on the map to be only available when there is torch light overlapping it. But, for some reason, my tiles are visible even though I filled the background with black colour. Help would be appreciated. I want to hide my tiles too! Pragun Sharma Link to comment Share on other sites More sharing options...
squilibob Posted May 15, 2017 Share Posted May 15, 2017 It is hard to tell without seeing your code. Are you using beginfill and endfill? Link to comment Share on other sites More sharing options...
Recommended Posts