Page 1 of 1

Looking for a way to move a sprite faster but still smoothly

Posted: Fri Dec 20, 2013 5:14 pm
by Manveru
Hello mates, and apologizes for any mistake translating this message to English.

I need to move a sprite in the screen faster than it usually does after every VDP_waitVSync update. If i increase the value of the movement, the sprite seems to be 'jumping' in the screen, but what i need is a smooth fast movement, so i need to update the position with a small value but more often (maybe some multi-threading?).

I hope you can help me with that. Thanks for your help and merry christmas to everyone.

Posted: Fri Dec 20, 2013 5:34 pm
by TmEE co.(TM)
You are limited to the Vsync speed. There is no way to move the sprite faster without jumpiness effect.
If you need to move the sprite across the screen in 4 frames you have to have 320/4 pixel jumps each frame.

Posted: Fri Dec 20, 2013 6:25 pm
by djcouchycouch
how fast are you moving the sprite every frame?

You could add a kind of "blurred" sprite or a series of sprites behind the original one to fake speed blur.

Posted: Fri Dec 20, 2013 10:35 pm
by Manveru
Thanks guys for your answers. Now i know that the speed can't be changed to be faster and also that i can use some tricks with some sprites to make a blur effect.

By the way i am working now with the ship of Thunder Force IV, and this problem was with the railgun lasers, which seemed too fast in the original game.

I managed to adjust the speed and the sprites in various times in the animation and i have obtained a good result, nearly as good as the original one, still with some jumpiness effects but i think it is ok for now.

Maybe i should have to discover some other "trick" to avoid that little of jumpiness, as in the Tecnosoft game.

Thanks again mates.