Animating and Moving Sprites?
Hey there,
I'm attempting to make an experimental GLCD game using a PIC32 processor, with a FreeRTOS inside. Yes - it is in progress, it works, but I have a funny problem here which is to make the sprites move.
Since it can be ported to Parallax Propeller, so I believe the question belongs to the General Discussion area.
I used this method to move the sprite, but I love to hear your opinions on that.
1.) Draw sprite at this position (x,y).
2.) Then erase the sprite at this position (x,y).
3.) Draw the new sprite again at new position (x1,y1)
Process goes to one, but new position will keep increasing.
It is a horizontal direction for now, and further translational procedures will be tested if I got these right.
Hope to hear your feedbacks.
I'm attempting to make an experimental GLCD game using a PIC32 processor, with a FreeRTOS inside. Yes - it is in progress, it works, but I have a funny problem here which is to make the sprites move.
Since it can be ported to Parallax Propeller, so I believe the question belongs to the General Discussion area.
I used this method to move the sprite, but I love to hear your opinions on that.
1.) Draw sprite at this position (x,y).
2.) Then erase the sprite at this position (x,y).
3.) Draw the new sprite again at new position (x1,y1)
Process goes to one, but new position will keep increasing.
It is a horizontal direction for now, and further translational procedures will be tested if I got these right.

Hope to hear your feedbacks.
Comments
Instead of
1) Draw sprite
2) Erase sprite
3) Draw new sprite
You would
1) Draw new sprite partially over old sprite and partially over the background
2) Restore the background on only some of the sprite area.
I have done this with a mouse cursor and it is faster and also looks smoother as there is not the erase stage.
Does that bitmap have a blanking flag? (screen visible, screen not visible)