Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Need help on working with times  (Read 1092 times)

0 Members and 1 Guest are viewing this topic.

magneonx

  • Full Member
  • ***
  • Posts: 141
    • MSN Messenger - magnumneon04@hotmail.com
    • View Profile
Need help on working with times
« on: June 27, 2013, 05:01:38 am »
Hello! I am writing a game, I would like to know the maths and the terms relating on working with times.

For example, a character reloads its weapon for 1.25 seconds, spawning enemy every 10 seconds, spawning for 3 seconds before game start, etc etc what is the math behind this?

Can you teach how this is done, at least some formula will do. I am not particularly good in numbers so...

Also, I am using the technique in fps where it remains constant all through out regardless of the CPU speed.
So I am rendering using that.

Thanks.

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Need help on working with times
« Reply #1 on: June 27, 2013, 09:11:32 am »
What maths?

Use an sf::Clock to measure time. ^^