Maybe I’m missing something obvious but…
…is there a way to re-scale an actor (sprite) in pgzero?
Actors have all the same attributes and methods as Rect
could some kind, conscience person post a simple example
Maybe Simplicity is bought at the cost of Functionality?Pygame Zero wraps Pygame almost completely - but we don’t expose all the features. We expose only the features that work really well without extra fuss, and hide some of the other features that work less well or need extra steps.
re-scaling a sprite should not be “alchemy” when it’s su[p]per simple to rotate an Actor (sprite)!
https://github.com/lordmauve/pgzero/issuesYou can report bugs, or request features that you think should be in Pygame Zero, using the Github issue tracker.
Code: Select all
import pgzrun import pygame alien = Actor('alien') alien._surf = pygame.transform.scale(alien._surf, (new_width, new_height)) alien._update_pos() def draw(): alien.draw() pgzrun.go()