Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Scripting (https://www.askmehelpdesk.com/forumdisplay.php?f=455)
-   -   About setInterval (https://www.askmehelpdesk.com/showthread.php?t=69583)

  • Mar 7, 2007, 02:50 AM
    aneelbakshi
    about setInterval
    how I can use setInterval
    I know
    1 second=1000 millisecond
    but I'm confuse that how
    10 fps==100 milliseconds
    explain
  • Mar 7, 2007, 02:53 AM
    Capuchin
    The time between frames is the inverse of frames per second



    In other words, each of the 10 frames are on for 100 milliseconds, which has to add up to a total time of 1 second

    10*100 = 1000milliseconds, which is a second.
  • Mar 7, 2007, 03:07 AM
    Capuchin
    Hi, as you are still confused I will try again.

    You have 10 frames per second.

    This means 10 frames in every second.

    To work out the time for each frame, you need to split up the second into equal amounts.

    Because you have 10 frames per second, you need to split the second up into 10 equal amounts.

    this is done by division: , this is 100 milliseconds using the conversion that you say you understand.

  • All times are GMT -7. The time now is 08:56 AM.