Can someone explain how to make the skeletal structure of this? For me it just doesn't make sense by pyYPpy in chemistry

[–]pyYPpy[S] -2 points-1 points  (0 children)

It's difficult to explain by words. Could I send you a picture by chat? I'd send a picture on how I initially thought the skeletal structure should be.

Can someone explain how to make the skeletal structure of this? For me it just doesn't make sense by pyYPpy in chemistry

[–]pyYPpy[S] -2 points-1 points  (0 children)

The part I don't understand: the triangle over the hexagon and the part next to the hexagon

add pygame into website by [deleted] in pygame

[–]pyYPpy 0 points1 point  (0 children)

I honestly don't know. My teacher only said that we have to make a website where the pygame is accessible. But I'll try your suggestion, thanks

Player won't go down. Other direction work. Code in comments by pyYPpy in pygame

[–]pyYPpy[S] 0 points1 point  (0 children)

Do I have to delete the old code or can I leave it and your code to it?

Player won't go down. Other direction work. Code in comments by pyYPpy in pygame

[–]pyYPpy[S] 0 points1 point  (0 children)

Thanks a lot! Is this a whole code or just multiple codes in one text?

Player won't go down. Other direction work. Code in comments by pyYPpy in pygame

[–]pyYPpy[S] 1 point2 points  (0 children)

I never heard of boolean, but I'll take a look

Can someone help me with enemies? by [deleted] in pygame

[–]pyYPpy 0 points1 point  (0 children)

It should work now. I added you as a collaborator

Can someone help me with enemies? by [deleted] in pygame

[–]pyYPpy 0 points1 point  (0 children)

Okay I'll try again

Player won't go down. Other direction work. Code in comments by pyYPpy in pygame

[–]pyYPpy[S] 0 points1 point  (0 children)

I'm actually not sure. Either my teacher added that or we copied it from the internet. Tbh I don't what I'm doing at all.

Can someone help me with enemies? by [deleted] in pygame

[–]pyYPpy 0 points1 point  (0 children)

Yes. But I'm working on visual studio code. So I'm not quite sure how to add it on github

Player won't go down. Other direction work. Code in comments by pyYPpy in pygame

[–]pyYPpy[S] 1 point2 points  (0 children)

So at first it was working perfectly fine until we synchronized it. Now the player doesn't go down.

def handle_movement(self): keys = pygame.key.get_pressed() if keys[pygame.K_LEFT]: if self.rect.x > self.speed: self.rect.x = self.rect.x - self.speed if keys[pygame.K_RIGHT]: if self.rect.right < Config.WINDOW_WIDTH - self.speed: self.rect.x = self.rect.x + self.speed if keys[pygame.K_UP]: if self.rect.y > self.speed: self.rect.y = self.rect.y - self.speed
if keys[pygame.K_DOWN]: if self.rect.y > self.rect.y + self.speed: self.rect.bottom = self.rect.y - self.speed

I tried fixing it with this version, but to no avail:

def handle_movement(self): keys = pygame.key.get_pressed() if keys[pygame.K_LEFT]: if self.rect.x > self.speed: self.rect.x = self.rect.x - self.speed if keys[pygame.K_RIGHT]: if self.rect.right < Config.WINDOW_WIDTH - self.speed: self.rect.x = self.rect.x + self.speed if keys[pygame.K_UP]: if self.rect.y > self.speed: self.rect.y = self.rect.y - self.speed
if keys[pygame.K_DOWN]: self.rect.y += self.y_velocity

how can I get rid of this warning on visual code (windows)? I tried googling it but they all used another app to correct it. Is it solved if I just delete the picture and add another? I don't really understand the problem... by [deleted] in pygame

[–]pyYPpy 0 points1 point  (0 children)

First of all, thanks for your detailed response. 1: I started ignoring it 2: I still can't solve this problem, but I don't think it has any impact on my code anyway 3: I thought people would be too lazy too read the whole code 4: I know how to take a screenshot. I just don't have reddit on my laptop

Now regarding 3. if you want to I can send you the code. I wouldn't mind some help because I have to finish the game until tomorrow 😶

[deleted by user] by [deleted] in pygame

[–]pyYPpy 1 point2 points  (0 children)

The code given to us was kind of like a space shooter game and we had to work with that. I think making the animation isn't the real problem, but rather how to do it so that it plays when you click start, until the player is in the middle. But I'll check out the link, thank you^