I'm making a top-down RPG style game in PyGame and I've used this code to calculate the distance between the player and an NPC called "Teacher" distance = pygame.math.Vector2(player.x, player.y).distance_to((teacher.x, teacher.y)). However, when I print the value of "distance" it will not change from 100. Is it because of the scrolling camera?
Full code is on my github
CodePudding user response:
