Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Text Shadows


jdiego82
 Share

Recommended Posts

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

  • 4 months later...

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...