Skip to main content
gamedev.net
🔒 Locked

gravity and timer

Started by Mansion Oct 9, 2000 at 6:09 PM 0 replies 450+ views
Original Post
Mansion
Mansion
how can i best implement gravity in 2d game with timer, i already use high resolution timer(queryperformancecounter) and it works cool for moving in X thanks
Atavist
Atavist
Well this really depends on how your engine is built.
But usually its as simple as having your sprites have acceleration. When you update them, their speed changes towards the direction of gravity. Im not sure what more do you need to know?

Just because the church was wrong doesn't mean Galileo wasn't a heritic.
It just means he was a heritic who was right.
Just because the church was wrong doesn't mean Galileo wasn't a heretic.It just means he was a heretic who was right.

Topic Locked

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

Sign in to reply to this topic.