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.
Looking for a way to move a sprite faster but still smoothly
Moderator: Stef
Looking for a way to move a sprite faster but still smoothly
The man who moves a mountain begins by carrying away small stones. Confucius, 551-479 BC
-
- Very interested
- Posts: 2452
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
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.
If you need to move the sprite across the screen in 4 frames you have to have 320/4 pixel jumps each frame.
Mida sa loed ? Nagunii aru ei saa 
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen

http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
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.
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.
The man who moves a mountain begins by carrying away small stones. Confucius, 551-479 BC