Simple race game?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Debeli
Posts: 31
Joined: Thu Jan 07, 2010 2:32 pm

Simple race game?

Post by Debeli »

I was thinking about making a simple race game no fancy physx engine just the basic stuff so i have a problem because its a race game when you press W you expext movement and that movement to become faster and faster when you hold the key so should i do like when the button is pressed down start a timer and for each second that has passed increase my movment speed a litle bit and if the button is released i would have to reset the timer?
So my question is is this the way its done ?
freetimecoder
Posts: 226
Joined: Fri Aug 22, 2008 8:50 pm
Contact:

Post by freetimecoder »

I think it would be easier to implement a speed variable and increase it when the key is pressed, and decrease it when the key is not pressed.

greetings
Post Reply