[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Wraparound with sprites



Malcolm Ryan wrote:

without any problems, but I can't figure how to do wrap- around, so that when a sprite goes off one side of the screen it comes on the other. Can anyone offer any pointers?

Probably the easiest way is to just blit it twice (or three times, or four, depending on how many corners are involved). If the wrap-around portion is going to be offscreen, you don't even have to bother with passing the .blit an area rect.