[SDL] Question about animation; erasing where my sprite has been

JDE socomm at gmail.com
Sat Mar 1 08:57:00 PST 2008


Make sure you're flipping the screen everytime the character changes
position.

On Sat, Mar 1, 2008 at 7:14 AM, Michael Sullivan <michael at espersunited.com>
wrote:

> I've drawn my sprite in it's original position.  I move it to a new
> location and redraw the screen.  The sprite is drawn in then new
> position, but also still shows in the old position.  How to fix this?
> I'm using double-buffering, if that matters.  The full code of my
> project in it's current state can be found at
> http://www.espersunited.com/~michael/needhelp/ourrpg/<http://www.espersunited.com/%7Emichael/needhelp/ourrpg/>if reference to it
> is necessary...
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080301/861c6499/attachment.html 


More information about the SDL mailing list