PyGame Platformer Game Beginner Tutorial in Python - PART 2 | Creating the Player

preview_player
Показать описание
In this Python tutorial I code a Platformer Game using the PyGame module. I'm going to cover the creation of a player character and adding controls to move him around

Note, sprites and sounds are open source:

Check out my other PyGame tutorials:
Рекомендации по теме
Комментарии
Автор

Thank you, my savior. You saved me from my game programming disaster.

kenchen
Автор

Your logic is too good Russ. I can understand it more clear with your programming logic.

ProbragCL
Автор

These tutorials are really easy to understand! Much better than tech with tim, or other channels

Other channels make it too complicated and i cant understand those
Please keep making videos you are really good!

soupnoodles
Автор

Your Pygame Platformer is very good. I have a lot of fun to make it with you

thomaspfaff
Автор

For anyone else getting "TypeError: Player() takes no arguments" try checking to see how big the underscore (this _ ) is. When typing def __init__(self, x, y): you gotta put 2 underscores not just 1




might edit later for it to make more sense... or not, just basically put two underscores not just one

Sean-ppy
Автор

quick tip in pygame there is a key called get_just_pressed() which basically check if you just pressed soemthing so holding doesnt work

glode
Автор

i do not understand the rectangle part. why does it need to be a rectangle? also in the screen its not even a rectangle its still a square.

RickyBascom
Автор

hey, 7:13 my player movement is very choppy i even tried to add clock but didnt work. i tried to adjust the dx but still didnt work. can someone help me with this?

MobberMasterMind
Автор

just watched this. amazing video. liked and subbed ur underrated af bro

Dash-mio
Автор

Not sure if this place is still alive but, my character only moves to one side. I tried to copy your code but it still moves only to the right. If I swap the sentences with 'if key[pygame...' it only moves to the left. Any idea what could be wrong?

raazac
Автор

Another great video easy to follow thank you

trailsanddales
Автор

Im javascript game developer but im watching your video coz theres arrent so many tutorial about javascript game development.

abudi-channel
Автор

Also upload a video on how to make sprites

ashwins
Автор

Love your videos, and thank you for sharing! One thing that I don't fully understand is one you create an "Update" function for the player, after creating the player class. Or perhaps it is just the "update" name that cofuses me.

juthmusic
Автор

player = Player(100, screen_height - 130) returns an error: TypeError: Player() takes no arguments

johnniegilkerson
Автор

I have a problem. Following the code to 3:21, when I run it, my character spawns at the very top left. I don't understand what I did wrong

lockks
Автор

Best Tutorial on the internet yet. Do you have a Patreon page?

garthwhitelum
Автор

Hey Russ I know its been 3 years since you uploaded this video but when I click to move or jump every time my character keeps drawing him self on the screen and making bit trail of icons can you help me?

danilodimitrijevic
Автор

if I set self.vel.y to -15 my player goes down, not up. I have to set it to 15 for the player to go up. anyone knows what I'm doing wrong?

mihovillukic
Автор

I got this error when I create the player class "player = Player(100, screen_height - 130)
TypeError: Player() takes no arguments". I got no idea how to solve it

bobyau
join shbcf.ru