how do i determine a sprite's position in pygame?
问题 I'm new to pygame and am making a zombie running game. I am controlling the human with the arrow keys and I would like to have a zombie run toward the player's position when the zombie is first created. I am unsure how to determine the players position to set the zombie in the correct direction. The zombie doesn't have to follow the human, just head in the direction of the players position when the zombie is created. class Human(pygame.sprite.Sprite): def __init__(self): pygame.sprite.Sprite.