USERNAME:
PASSWORD:
Save Info!
Logging in…
This topic is 1 page long.
[ Profile | Posts | Contact ]
Posted at: 11/8/09 04:34 PM
Sign-Up: 08/22/09
Posts: 22
Hi I am looking for a way to display frames per second in ActionScript 2.0, I googled a lot, but I found only some weird scripts that shows 32 fps, even when my game is lagging like hell and I am not mentioning that it has only 30 fps set as default TT So, anyone knows any decent way to display fps? Thanks
Posted at: 11/8/09 04:44 PM
Sign-Up: 05/04/08
Posts: 3,186
Make a dynamic textfield named fps_txt and put this in the frame.
var fpstime = getTimer(); onEnterFrame = function(){ var currtime = getTimer(); fps_txt.text = Math.floor(1000/(currtime-fpstime)) + " fps"; fpstime = currtime; }
12
All times are Eastern Standard Time (GMT -5) | Current Time: 04:02 PM
<< Back