|
-
changing fps...
hi,
is it possible to change the fps in the middle of a game?
-
Senior Member
-
-
Amiga freak
It is if your game is built in a certain way.... people have asked this many times before. Make a search. But you'll probably have to change your current engine.
-
Yes we can
There are workarounds but they don´t make that much sense really, because no matter how you do it, a good split of the possible performance will be lost by running bulk code to control the fps rate. Besides that all approaches for controlling fps dynamically i´ve seen had very varying results on different machine setups (way more jumpy than fps results are already with the default fps setting feature of flash). Its really best to choose an fps setting which the flash player can handle all the time during gameplay on your target audience´s average machine.
For most game types an fps setting of 31 should do fine, whereas for things like puzzle games you could even go a bit lower,for scrolling action packed games it should be that or higher ideally to port the sense of smooth scrolling and feature direct control input response.
-
n00b
It is really easy to change fps when you use setInterval for the update loop and use timebased updates. You d have also to make the sprite animations dependant on the update loop though.
I do stuff that does stuff...
J-Force
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|