PyGame Platformer Game Beginner Tutorial in Python - PART 10 | Add a Score Counter and Display Text

preview_player
Показать описание
In this Python tutorial I code a Platformer Game using the PyGame module. I'm going to ad a score counter and create a function for showing text on the screen

Note, sprites and sounds are open source:

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

it's funny to see so many people leave after the first few tutorials, have a bit of determination damnit! Btw great tutorials

Superamazing
Автор

your tutorials are helping me even after 2 years. I wonder how your tutorials arent more famous!

aaravagrawal
Автор

Very useful, got me back into coding!

lucasschneider
Автор

Thank you so much for all the tutorials, they have been a massive help! I was wondering if there was a way to include 5 different coloured keys under one place or would there have to be a new class made for each coloured key?

uejgohh
Автор

I am experiencing an issue as whenever i run the code self.rect.center = (x, y), it gives back an error mezsage "type error: invalid rect Assignment" please help

DaanGreenhalgh
Автор

Hi Russ,
When i was beta-testing my levels, I realized that if you collect two coins at once, then the score counter only goes up by one. Do you know how to fix this? I have no idea how to fix this :/

justyouraverageplatypus
Автор

great, now it would be interesting to move the picked up coins to the coin counter

gxgrpwh
Автор

Hey! Love your tutorials! But i have a question, how would you implement lives?

julijavoitina
Автор

Hello Russ! I am so convinced of the game that I continued programming it;) I wanted to add that you can also get 2x coins. I added that but unfortunately +1 is still made :(
The Code is down below ;)

allinoneyt_
Автор

Your tutorials are amazing and helped me alot! Thanks! There's a bug where if i put 2 coins one above the other and collect them at the same time it increases the score by 1.
How do i fix that

midoplaysmts
Автор

I don't know how to move the score coin to the other position. Can you tell me how to do this?

Tom-ifdu
Автор

If I don't take the coins, it appears to me on the next level, how to solve the problem

MedoElhager
Автор

Hi at 1min 41 seconds when adding the coin class. I get an error with self.rect.centre = (x, y) when I run the game it fails when I run into as door and gives the error. AttributeError: 'pygame.Rect' object has no attribute 'centre'. Any help most appreciated I have double and triple checked it. thanks

trailsanddales
Автор

bro why everytime u reach level 3 u dont continue im convinced its impossible to complete, ill make another one in level editor hhh

rayanalsinan
Автор

I have exactly the same code but my player walk and jump very slow

Samiin
visit shbcf.ru