Jump to content

Can't display FPS


AlexKvazos
 Share

Recommended Posts

Hello, I just finished my first phaser tutorial on how to make a basic game. This one

 

I wanted to display the FPS on a corner and I did this: 

fpsText.text = 'FPS: ' + game.time.fps;

It is at the end of my update() function. It is always displaying 0.

 

However, it does render properly. I never assigned it the 0 value.

 

Thanks in advance!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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