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

SGDK only sub forum

Moderator: Stef

Post Reply
Manveru
Very interested
Posts: 85
Joined: Wed Sep 05, 2012 3:30 pm

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

Post 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.
The man who moves a mountain begins by carrying away small stones. Confucius, 551-479 BC
TmEE co.(TM)
Very interested
Posts: 2452
Joined: Tue Dec 05, 2006 1:37 pm
Location: Estonia, Rapla City
Contact:

Post 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.
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
djcouchycouch
Very interested
Posts: 710
Joined: Sat Feb 18, 2012 2:44 am

Post 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.
Manveru
Very interested
Posts: 85
Joined: Wed Sep 05, 2012 3:30 pm

Post 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.
The man who moves a mountain begins by carrying away small stones. Confucius, 551-479 BC
Post Reply