Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
OverlordMao

How many frames does are in a second (RMXP)

Question

This is a lot harder then I thought it might be. Anyone know how manys frames in rmxp are equal to a second in time? :huh:

 

Edit: Sorry about the typo in the topic title.

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Yeah, it does run at 20 frames per second, but it if its running in smooth mode it will run at 40 frames per second. Run RMXP and press F1 and the first option there is for smooth mode, and thats recommended for computers that have 1.5Ghz or higher.

 

A search in RMXP's help file returned this:

RGSS games usually run at 20 frames per second, but you can check [smooth Mode] in the game's Properties to run it at a 40 fps framerate instead. This is why the scripts move at an internal rate of 40 fps whether [smooth Mode] is on or off. Be aware that most values, like wait length, will be handled as though they've been doubled.

Share this post


Link to post
Share on other sites
  • 0

If you are thinking about the amount of frames in context with the Wait... event command then its 20 frames per second regardless of smooth mode or not.

 

(You can change the frame rate with Graphics.frame_rate but as long as you don't change it the above holds assuming no lag)

Share this post


Link to post
Share on other sites
  • 0

Well... You can use this if you want to wait in seconds rather than frames:

class Interpreter
 #--------------------------------------------------------------------------
 # * Wait
 #--------------------------------------------------------------------------
 def wait(seconds)
# Set wait count
@wait_count = (Graphics.frame_rate * seconds).to_i
# Continue
return true
 end
end

 

Just put wait(3) in a script call for waiting 3 seconds.

Put wait(0.5) for waiting half a second.

wait(3.5) waits for 3 and half a second.

 

You get the idea I am sure.

 

As a bonus this will still work if you change the frame rate ^^

 

*hugs*

- Zeriab

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...