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

Make the Interface Text stick in the corner


Pixelguy
 Share

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 : 

game.camera.follow(lander);

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

 Share

  • Recently Browsing   0 members

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