Jump to content

Update text when a variable changes (Points ticker)


rickbross
 Share

Recommended Posts

Just change the text to the variable right after adding to.
 

function scored(points){  Window.points += points;  Window.scoreboard.text = 'Score: ' + Window.points;}

where scoreboard is your Phaser text object.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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