derangedPEZ
2002.08.16, 06:31 PM
Hi, I've been trying to think of a way to move something (a sprite) from one point to another. And now, I'm out of ideas.
Here's the scenario:
the sprite has two variables (int) descibing it's movement speed. hSpeed and vSpeed
for every frame drawn, hSpeed and vSpeed is added to the hLocation and vLocation of the sprite.
Now, how do I calculate the hSpeed and vSpeed in order to get the most accurate movement? In real life you would use decimal numbers, but when working with pixles, you cant:(
Any suggestions? Please help me
thanks in advance,
Ruben
Here's the scenario:
the sprite has two variables (int) descibing it's movement speed. hSpeed and vSpeed
for every frame drawn, hSpeed and vSpeed is added to the hLocation and vLocation of the sprite.
Now, how do I calculate the hSpeed and vSpeed in order to get the most accurate movement? In real life you would use decimal numbers, but when working with pixles, you cant:(
Any suggestions? Please help me
thanks in advance,
Ruben