954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

pygame camera

Is there a module for a camera in PyGame, because I want the camera to follow an image, thanks.

tomtetlaw
Practically a Master Poster
605 posts since Sep 2008
Reputation Points: 9
Solved Threads: 5
 

there's not alot of info about it, but check the pygame website www.pygame.org

besktrap
Junior Poster in Training
58 posts since Jul 2008
Reputation Points: 10
Solved Threads: 1
 

Hmm I've already tried that

tomtetlaw
Practically a Master Poster
605 posts since Sep 2008
Reputation Points: 9
Solved Threads: 5
 

Can't you just keep track of a virtual camera position tuple, then when everything blits to the pygame display, adjust them by the camera's position?

shadwickman
Posting Pro in Training
497 posts since Jul 2007
Reputation Points: 186
Solved Threads: 77
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You