0

hello im making a simple movement system in Pygame but when the character (circle) moves it leaves behind a trail. player.update() also draws the player, the trail is subtle and like a flicker it only leaves 1 circle of a trail (no I don't draw the circle twice). i also tested this on other monitors and the problem remained. take a look at this video. https://www.dropbox.com/s/pjcy6aix2x5lwy2/2021-02-20%2017-57-30.mp4?dl=0

disp = pygame.display
win = disp.set_mode((1680, 1050)), pygame.FULLSCREEN)

-------blablabla inbetween--------

while True:
    win.fill((51, 51, 51))

    for events in pygame.event.get():
        if events.type == pygame.QUIT: quit()

    player.update()
    disp.update()
    pygame.time.Clock().tick(60)

and as of your request heres the player.update() and i am not calling the disp.update() method multiple times.

    def update(self):
        self.move(direction())
        self.vel.sum(self.acc)
        self.pos.sum(self.vel)
        self.draw()

        self.vel.multiply(vector(0.9, 0.9))
        self.acc.substract(self.acc)

Irakli
  • 21
  • 5

0 Answers0