Advertisement

slow to left - fast to the right Quirk

Started by July 31, 2000 09:28 PM
1 comment, last by Lenny 24 years, 4 months ago
Every game I work on I move sprites according to elapsed time but they always move faster to the right than they do to the left even with the same code attached to the sprites. I have came up with some work arounds like using different speed numbers to get them to equal out. It just doesn''t make sense has anyone else ever came across this?
Hmm. Interesting.

What are you using as your base reference for movement?

Here''s a couple of possible scenarios:

Moving left and moving right use different functions, and you made a typo in one of these functions. Something as simple as losing a set of parenthesis.

You are using integers to describe location, reference point is in the center of the sprite, and you are doing a divide without using floating point math.

To answer with any certainty would require seeing the code.

-fel
~ The opinions stated by this individual are the opinions of this individual and not the opinions of her company, any organization she might be part of, her parrot, or anyone else. ~
Advertisement
It probably has nothing to do with your code. Sprites moving right look
faster because that is how video memory is drawn on your screen, left to
right, top to bottom. You will probably notice this if you game has a
low fps.

This topic is closed to new replies.

Advertisement