Need help with grid system
Posted: Tue Mar 12, 2013 11:35 pm
Here's what I want it to do. Every second, the player moves 100 pixels to the right. Here's my code
Playerxx = player's x coord
pdt = my var for delta time
As you can see, this code would indeed move the player right 100, but it also moves every pixel in between,
how can I get it to jump that 100 pixels?
Code: Select all
playerxx = playerxx + (100 * (10 * pdt))
pdt = my var for delta time
As you can see, this code would indeed move the player right 100, but it also moves every pixel in between,
how can I get it to jump that 100 pixels?