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

Re: [pygame] Move sprite and stop it.



I second the basic tutorials so that you can understand how to accomplish exactly what you need.

On Apr 28, 2010, at 5:38 PM, B W wrote:

There are no stupid questions. Unless you work at my company where they seem to abound. :)

You need to control all the details of sprite position in a loop with increments and conditions. There's no move_to in Pygame, though many of us have coded our own move_to functions we might be willing to share. There are plenty of basic examples on pygame.org (http://www.pygame.org/wiki/tutorials) that illustrate this much better than we can express in emails.

Not sure what you mean by swapping two sprites. Do you mean to replace a sprite's image?

Gumm