Jump to content

Make the Interface Text stick in the corner


Recommended Posts

So I have several Texts in my game to display informations like the fuel level of my vehicle :

fuelText = game.add.text(16, 16, 'Fuel: ' + fuel, { font: '16px Arial', fill: '#ffffff' });

The camera follows the  player controlled vehicle : 


How can I get the Text to stay in the top left corner of the window the player currently sees instead of sticking at (16, 16) ?

Link to comment
Share on other sites


  • Recently Browsing   0 members

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