0

"TabError: inconsistent use of tabs and spaces in indentation" is returned from my program.

self.image = pygame.image.load("Assets/SPRITE ASSETS/ship_down.png")
                                                               ^
TabError: inconsistent use of tabs and spaces in indentation

My code is this:

class Ship(pygame.sprite.Sprite):
    def __init__(self, movex, movey):
        super().__init__()

        self.image = pygame.image.load("Assets/SPRITE ASSETS/ship_down.png")

        self.movex = movex
        self.movey = movey

        self.DIRECTION = "DOWN"
        self.moving = False

Please help. Thanks!

TJRelytS
  • 21
  • 4

0 Answers0