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

Re: [pygame] moving text



Matt Ficken wrote:
i generated a font using pygame.font.Font, and then rendered it and
displayed it with:

screen.blit ( rendered_text, ( x, y ) )

I would later like to move the rendered text to a different position.
I called 'move' on blit's return value but it doesn't move the
rendered text. How do I move the text
moving an image of text is the same as moving any other type of image, like something loaded from a JPG. the process usually involves clearing the image with the current background and drawing the text in a new location. there is a beginners tutorial right up your alley. if you find it's too basic you can jump right to the end.

Help! How Do I Move An Image?
http://pygame.org/docs/tut/MoveIt.html