lordmauve / pgzero

A zero-boilerplate games programming framework for Python 3, based on Pygame.
https://pygame-zero.readthedocs.io/
GNU Lesser General Public License v3.0
530 stars 190 forks source link

Getting updated image for actor? #261

Closed eugene-bce closed 2 years ago

eugene-bce commented 2 years ago

I have a webcam image that updates every second (webcam.jpg) webacm = Actor('webcam')

How can I get PgZero to update the Actor image when the image updates?

lordmauve commented 2 years ago

You have to use plain PyGame features for this. Pygame has a camera module or you can load the images using pygame.image.load().