Tagged Questions
-1
votes
1answer
84 views
GameTimer too fast, Objects staying intersected and rand not returning value inbetweem min and max [closed]
So I'm developing a game called PongBreakout in c++ using a game engine i got from uni (when i was there..)
I've got a few problems with my game that i'm struggling to fix and need some help to figure ...
4
votes
2answers
292 views
C++/OpenGL Game - How to Make it Compatible with Screen Recorders?
I'm developing a 3D tower defense-like game in C++/OpenGL on Windows.
The problem I'm having isn't about the game itself (the game runs fine), but it's about using screen recording software to record ...
1
vote
1answer
121 views
C++ Using clock() with IsKeyDown
I am trying to replicate the game Asteroids as a class project. I am having trouble measuring the time elapsed while the "W" key is pressed.
This code is supposed to increase the force applied to the ...
1
vote
5answers
501 views
Game Timer In C++
I need to be able to find out how many milliseconds since that last update. Is there any way I can find it out with time rather then a thread that counts like I did below?
#include <iostream>
...
-2
votes
3answers
241 views
How to rotate to a target position over time
I know how to do rotations to vectors, but how do I rotate over time?
For instance say I made a function
RotateTo(vec2 iPosition, float iTime);
so it rotates to iPosition over iTime - how would ...
0
votes
3answers
694 views
How can I make a C++ countdown timer that doesn't freeze user input?
I'm planning to use the Sleep() function to implement a countdown timer. But this freezes the input of the user at the same time. Thus I wanted to ask if it is possible to have the countdown still ...
-2
votes
5answers
399 views
Best C++ Portable time library for game development [closed]
I'm venturing into the dark world of portable development and I'm looking for a nice library to keep track of system time for all game events. So far I've turned to trust boost and found:
This boost ...
0
votes
1answer
257 views
How can you run events after a set amount of time in SFML 2.0?
I've been using SFML 1.6 for a while and recently upgraded to 2.0, apparently there's a new sf::Time type however I'm clueless as to how I can achieve running of a certain function after a set amount ...
6
votes
4answers
616 views
Game Clock Precision
I'm reading a fantastic article about game timer precision and here is a quote about 2/3 of the way into the article:
If you start your game clock at about 4 billion (more precisely 2^32,
or any ...
1
vote
0answers
319 views
Countdown Timer for Racing Game
I want to make a countdown timer for my racing game such as "3... 2... 1... GO!" I'm using GLUT, OpenGL, and C++. I was wondering what the most appropriate method to handle this in C++. clock()? ...
1
vote
1answer
1k views
C++ OpenGL Game Timer [duplicate]
Possible Duplicate:
Tips for writing the main game loop?
I am attempting to make a game using OpenGL and C++ but i haven't been able to find any good tutorials..or anything that could ...