A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: changing fps...

  1. #1
    Member
    Join Date
    Dec 2005
    Posts
    46

    changing fps...

    hi,

    is it possible to change the fps in the middle of a game?

  2. #2
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    no

  3. #3
    Member
    Join Date
    Dec 2005
    Posts
    46
    k, thanks

  4. #4
    Amiga freak Ironclaw's Avatar
    Join Date
    Jan 2001
    Location
    Sweden
    Posts
    1,650
    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.

  5. #5
    Yes we can tomsamson's Avatar
    Join Date
    Sep 2001
    Location
    Team Titan Secret Lair
    Posts
    4,666
    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.

  6. #6
    n00b LeechmasterB's Avatar
    Join Date
    May 2004
    Location
    Switzerland
    Posts
    1,067
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center