Skip to main content
gamedev.net
🔒 Locked

Timing

Started by disknoir 1 reply 550+ views
Original Post
disknoir
disknoir
I am trying to write pong. This is my first game and I am having a problem with the timing. I cant get the bats to move fast enough. I am using the folowing function to move my bats; void up(int num) { --bat[num].y; } I call this in my input function. Im using the timer, and even with the fest time set at 1 the bats dont move nearly fast enough. Is there any way I can get round this or will I have to approach the movement in as differnt way?
disknoir
disknoir
Im using allegro by the way!
M0H0
M0H0
Simple. You are moving 1 pixel each time, if you want it faster just make it move more pixels. Try something like bat[num].y-=2; or bat[num].y-=6; .

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.