oh i had this issue too in my game,
i haven't read the whole code, but it has to do with updating the main, or back buffer iirc
just play around with clrdraw and you should be able to fix it
also, you should introduce yourself to the forum here:
http://www.omnimaga.org/introduce-yourself!/
I see you use different pointers for your sprites. Instead you should use only one and use pointer offsets for that. Ie with only one command you do :
pt-on(x,y,id*8+PicX)
or you could do that, i think that would fix it too
Edit Sorunome: Merged double-posts