Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I'm doing some programming for a video game in which the player characters and monster enemies can move at different speeds on 2-dimensional, cell-based tile map. Examples of these speeds are as follows:

1600 ms = 0.625 tiles/s
1000 ms = 1 tile/s
800 ms = 1.25 tiles/s
400 ms = 2.5 tiles/s
100 ms = 10 tiles/s
25 ms = 40 tiles/s

The same mathematical formula is used to convert every one of the above equations (feed the formula the first value, out pops the second). Problem is my math skills are terrible and I can't figure out how to determine what that formula actually is. Help!?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Second value = 1000/first value.

share|improve this answer
    
Wow I'm retarded. Thank you so much! –  delaccount992 Mar 4 '11 at 11:14
    
You're welcome. –  Stefan Walter Mar 4 '11 at 11:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.