I'm getting this error when running pygame.Surface
object is not subscriptable. I have tried looking at similar code but still to green to place where I went wrong.
if I remove all "hit" lines it works. I want to insert an image for a hit function it will run till SPACE is hit.
elif self.isHitRight:
win.blit(hitRight[self.hitCount], (self.x, self.y))
self.hitCount += 1
elif self.isHitLeft:
win.blit(hitLeft[self.hitCount], (self.x, self.y))
self.hitCount += 1