Ask Experts Questions for FREE Help!
  Advanced
Register  |  Log in  
   Ask    
 Answer  
  Help  

Ask QuestionsprogressAnswer QuestionsprogressBuild ReputationprogressBecome an Expert
 
Free Answers in 3 Easy Steps

Register Now
3 Steps

At Ask Me Help Desk you can ask questions in any topic and have them answered for free by our experts. To ask questions or participate in answering them you must register for a free account. By registering you will be able to:
  • Get free answers from experts in any of our 300+ topics.
  • Accept money for answers that you provide.
  • Communicate privately with other members (PM).
  • See fewer ads.

Home > Computers & Technology > Programming > Scripting > Other Scripting   »   about setInterval

 
Thread Tools Display Modes
Question
 
 
#1  
Old Mar 7, 2007, 01:50 AM
aneelbakshi
New Member
aneelbakshi is offline
 
Join Date: Mar 2007
Posts: 2
aneelbakshi See this member's comment history on his/her Profile page.
about setInterval

how i can use setInterval
i know
1 second=1000 millisecond
but i m confuse that how
10 fps==100 milliseconds
explain

Reply With Quote
 
     

Answers
 
 
Old Mar 7, 2007, 01:53 AM   #2  
Science Expert
Capuchin is offline
 
Capuchin's Avatar
 
Join Date: Oct 2006
Location: UK
Posts: 4,857
Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.
Call Capuchin via Skype™ Send a message via MSN to 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.
  Reply With Quote
 
     
 
 
Old Mar 7, 2007, 02:07 AM   #3  
Science Expert
Capuchin is offline
 
Capuchin's Avatar
 
Join Date: Oct 2006
Location: UK
Posts: 4,857
Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.Capuchin See this member's comment history on his/her Profile page.
Call Capuchin via Skype™ Send a message via MSN to 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.
  Reply With Quote
 
     


Thread Tools
Display Modes

 
Similar Sponsors




Copyright ©2003 - 2007, Ask Me Help Desk.
All times are GMT -8. The time now is 06:16 PM.