Keisha Posted September 26, 2018 Share Posted September 26, 2018 If i use the CANVAS render, setTint() method for changing the color of a sprite doesn't work. Is there any other way ? Please help me. Link to comment Share on other sites More sharing options...
rich Posted September 26, 2018 Share Posted September 26, 2018 setTint is WebGL only. Link to comment Share on other sites More sharing options...
Keisha Posted September 26, 2018 Author Share Posted September 26, 2018 18 minutes ago, rich said: setTint is WebGL only. Okay. No other way to change the color of a sprite then? Link to comment Share on other sites More sharing options...
rich Posted September 26, 2018 Share Posted September 26, 2018 Not automatically, no. You could either use different textures, or come up with some code-based approach (like drawing the texture to canvas, coloring it, using it, etc) Link to comment Share on other sites More sharing options...
Recommended Posts