Pixelguy Posted January 9, 2014 Share Posted January 9, 2014 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 More sharing options...
Pixelguy Posted January 9, 2014 Author Share Posted January 9, 2014 Even a sprite alone that is fixed to the camera wobbles when the camera moves :/ Link to comment Share on other sites More sharing options...
Pixelguy Posted January 11, 2014 Author Share Posted January 11, 2014 *push* How do you guys do your Text interfaces? Link to comment Share on other sites More sharing options...
4ucai Posted January 11, 2014 Share Posted January 11, 2014 in 1.1.4 dev branch you can do fixedToCamera to textfuelText.fixedToCamera = true;fuelText.cameraOffset.setTo(0,0);I suggest trying out the 1.1.4 branch now or wait for the official release Pixelguy 1 Link to comment Share on other sites More sharing options...
Recommended Posts