key down and ball speed
Posted: Wed Feb 07, 2007 8:24 pm
hi,
I'm working on a game, but I have faced a problem I couldn't solve by myself. If you can help, I'll be very glad.
Problem is below:
I have a ball in my game and the game is based on throwing the game. I want the ball to be thrown to a distance controlled by the keypress duration.
For example when the "Space" key is been pressed and hold the ball will thrown to a longer distance, if less hold, to a shorter distance.
like a pinball ball.
Is there someone who can help me about it?
I'm working on a game, but I have faced a problem I couldn't solve by myself. If you can help, I'll be very glad.
Problem is below:
I have a ball in my game and the game is based on throwing the game. I want the ball to be thrown to a distance controlled by the keypress duration.
For example when the "Space" key is been pressed and hold the ball will thrown to a longer distance, if less hold, to a shorter distance.
like a pinball ball.
Is there someone who can help me about it?