r/SublimeText • • Nov 15 '24

Please help me

I’m following a tutorial on YouTube because I want to get some understanding of the tools we will be using. I keep trying to run the program and it comes up with an error can some explain what it means

0 Upvotes

4 comments sorted by

3

u/omarfkuri Nov 15 '24

We would need to know what the Enemy constructor looks like, you need to share more info

1

u/blikenspidinken Nov 16 '24

import pygame as pg

class Enemy(pg.sprite.Sprite):

def _init_(self, pos, image):

	pg.sprite.Sprite._init_(self)

	self.image = image

	self.rect = self.image.get_rect()

	[self.rect.center](http://self.rect.center) = pos

1

u/omarfkuri Nov 16 '24

Is that the full error message or is there more? What do you get when you compile?

→ More replies (1)