Collisions/Tiles/Physics - Pygame Tutorial: Making a Platformer ep. 3

Collisions/Tiles/Physics - Pygame Tutorial: Making a Platformer ep. 3

DaFluffyPotato

3 года назад

99,819 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Gionata Roberti
Gionata Roberti - 11.10.2020 01:37

bonk

Ответить
Eric E
Eric E - 11.10.2023 18:08

You lost me on all of the mistakes you that you corrected and when you delete code and move it, you do it so fast with no explanation that it's hard to code along with you. I find myself rewinding it often and having to rewatch it. Right now, I'm stuck trying to get the code to work at the end of this video, correcting all of the mistakes you mentioned with missing 's's and stuff. Good overall series though, just wanted to point out for you to slow down a tad. I would just copy and paste your code, but I have commented my own code in a way that overexplains every bit of your code, which I guess I can xfer over after copying and pasting your finished code.

Thank you for the series, just wanted to provide some feedback. Overall, this is very very good.

Ответить
dxgbj3
dxgbj3 - 29.07.2023 17:18

Thanks!

Ответить
Bud Skywalker
Bud Skywalker - 14.07.2023 18:00

my player became too big when i scaled up the resolution what do i do

Ответить
Wintlink
Wintlink - 13.04.2023 12:28

from where the fuck did you create "tiles" ????????????

Ответить
handmade_hero_fan
handmade_hero_fan - 11.02.2023 00:21

In the move() function I noticed that not returning the rect causes a HUGE performance hit over time, but I have no idea why. After a few minutes of the game idle the FPS drops uder 30 and doesn't go back up to 60.

I thought that just changing the values of the rect would be faster, similar to taking the rect by pointer in something like C. Could you explain when to return the changed type or class in python.

Ответить
LuigiBro
LuigiBro - 04.02.2023 13:59

Would the collisions be faster if it checks only some points with x and y pos, and without rectangles

Ответить
Michael Mueller
Michael Mueller - 25.01.2023 03:26

ty for giving the source code. I was stuck and it helped! Keep up the good work!

Ответить
treechickens123
treechickens123 - 07.11.2022 02:44

Hi! Lovely tutorial, but was just wondering why you didn't discuss scaling each image when you load it. I can understand if there are a lot of images then this might be more annoying to code but it would remove the need for a separate display and screen, making it more beginner friendly

Ответить
Niilo Kolehmainen
Niilo Kolehmainen - 25.09.2022 19:12

i just might be stupid but where did you declare the x and y variables for the list? (those in near the while loop dont work)

Ответить
El M3allem
El M3allem - 06.07.2022 04:09

sorry for the simple and off topic question but how do you get the pygame readout (and presumably error messages) to display at the bottom of your atom screen? I've been really frustrated because whenever my game crashes I can't read the crash report cuz it disappears when the game screen closes.

Ответить
Alen Smajić
Alen Smajić - 02.06.2022 18:37

I need help. I found a bug in your moving code. Basically when you press and hold the right key then press and hold the up key u jump to the right, but if you let go of the right key while airborne and then hold the left key u just keep going right. I really can't figure out why.

Ответить
The Young Coder
The Young Coder - 17.04.2022 14:31

BONK

Ответить
aMyst_
aMyst_ - 17.03.2022 11:46

is made me so happy

Ответить
aMyst_
aMyst_ - 17.03.2022 11:45

ty help alot

Ответить
aMyst_
aMyst_ - 16.03.2022 11:37

i can predict the fture

Ответить
David
David - 11.03.2022 05:52

TYSM! I've been looking for a solution that was simple and easy to understand.

Ответить
youtuberculosis
youtuberculosis - 09.03.2022 12:54

my gawd, using the display variable and adding images around it then scaling up to the WINDOW_SIZE variable, very ingenious concept but a bit too sparse.

Ответить
The diamond Pro
The diamond Pro - 11.01.2022 12:52

what is not air? plz help

Ответить