How Do I Create A FramesPerSecond Display?

Get help using Construct 2

Post » Fri Feb 15, 2013 3:26 pm

How Do I Create A FramesPerSecond Display?

Hi,

Close to finishing my 1st "Construct 2" video game!
How would I create a FPS(Frames Per Second) display?
Need it to test performance on my test computers.
Thanks!

JeZ+Lee
B
11
S
3
G
4
Posts: 105
Reputation: 2,950

Post » Fri Feb 15, 2013 3:40 pm

Create a text object,

every tick >text object set position to x y
            set text to fps

As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Fri Feb 15, 2013 3:44 pm

add a text item to your screen and somewhere in your game loop set the text item to "FPS : "&fps
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
59
S
30
G
34
Posts: 1,194
Reputation: 23,767

Post » Fri Feb 15, 2013 3:49 pm

@rampackwobble ...."Rampackwobble"....classic name...like it..wish I'd thought of that one :)
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Fri Feb 15, 2013 3:55 pm



ah fond memories ....

I wonder what percentage of these forums will remember proper computers ?
RamPackWobble2013-02-15 15:56:41
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
59
S
30
G
34
Posts: 1,194
Reputation: 23,767

Post » Fri Feb 15, 2013 4:01 pm

[QUOTE=RamPackWobble] add a text item to your screen and somewhere in your game loop set the text item to "FPS : "&fps[/QUOTE]Hi,

That worked, thanks!

JeZ+Lee
B
11
S
3
G
4
Posts: 105
Reputation: 2,950

Post » Fri Feb 15, 2013 4:15 pm

@jezlee Sorry to steal thread... @rampackwobble not many I guessin....
1K to 16K powerhouse is sure proper....
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260


Return to How do I....?

Who is online

Users browsing this forum: CavalierBubble, imnotspecial and 22 guests