Jump to content

Keep score on screen while scrolling the game?


owen
 Share

Recommended Posts

Hi

 

OK this is an extremely easy question I'm sure but I've not been able to find an obvious answer.

 

I'm developing a basic scrolling platform game and I am displaying score at the top of the screen.  Obviously I want the score to remain fixed in its location but instead it's scrolling off screen with the landscape.  So I'm missing some accepted/standard way of doing it I think.  See example here:  http://www.owensouthwood.com/mrgoggles

 

What is the best way of getting text to display and remain on screen in a scrolling game?  

 

 

Thanks.

 

Owen

Link to comment
Share on other sites

In your game scene root you make two layers, one for game content, and in front of that another for ui content.

Scroll the game content layer only.

[Edit] sorry didn't notice that this was a phaser-specific topic! The above approach is the most basic way to achieve your goal if you are building things from scratch. [Edit]

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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