jdiego82 Posted January 7, 2014 Share Posted January 7, 2014 Does anyone know how to style text with shadows/outlines when rendering text? I haven't played around with the Text class much, so I have no idea as of now. Link to comment Share on other sites More sharing options...
rich Posted January 7, 2014 Share Posted January 7, 2014 Strokes are easy, there's an example of it in the Examples suite. But shadows not so - you'd have to come up with a way to do it yourself I'm afraid (i.e. having the text duplicated in a darker colour, positioned below it). To be honest it should be quite easy to add shadow support to the Text class, but this won't happen just yet I'm afraid. Link to comment Share on other sites More sharing options...
yuckrocks Posted June 5, 2014 Share Posted June 5, 2014 Hey, i know this thread is from January, but isn't there any support right now?I'm new to Phaser and it's just fascinating Can someone help me?I tried the setShadow() Method like this (but it doesn't work): create: function() { var style = { font: "30px 'arial'", fill: "#ffffff" }; scoreText = game.add.text(20, 20, "0", style); scoreText.setShadow(2,2, 'rgba(0,0,0,1)', 0); Link to comment Share on other sites More sharing options...
Recommended Posts