RusStol Posted January 3, 2014 Share Posted January 3, 2014 Hello!How to make text blink every 1 seconds?Thanks. Link to comment Share on other sites More sharing options...
XekeDeath Posted January 4, 2014 Share Posted January 4, 2014 Use a timer to count to one second, then reset it to zero, and either set the alpha on the text to 0/1, or set visible to false/true.var timer = 0;var text = //create phaser text here;//Update functionupdate(){ timer += game.time.elapsed; //this is in ms, not seconds. if ( timer >= 1000 ) { timer -= 1000; text.visible = !text.visible; }} JHardin1112 1 Link to comment Share on other sites More sharing options...
Recommended Posts