first thank you a lot because of your tutorials then personally I came toward pygame after python tutorials, to learn how to program and more about python, then I will thank you a lot if you use all advance python topics in your pygame tutorials like decorators or multi-threading and processing and ... 🙏
This guy is pouring so much time into his videos to make it the best. Its absurd that these videos are not getting enough views. We should appreciate people like this. ❤️💯👍
27 Minutes in, you just explained how you need to do all this stuff upfront, before you can explain it, but the brilliant part of that thoughtful consideration of yours is that, I'm completely tracking, following along, and I have a pretty good idea of why you're doing it this way. When I tried an earlier simpler tutorial, I used 'gravity' and 'shift' and an update loop, but didn't yet figure out I needed to determine direction, and played around with animation states equivalent to your animation frames. Figuring it out on my own for the first time. So validating to see I was on the right path, and you just cleared all the confusing noise and brush from that path and now I'm speeding along. Thank you, Tim. Amazing, simply Amazing, tutorial.
Wow ! I managed to code along until the end. Fantastic content compressed into less than 2 hours ! Have taken away some points for further research. As always, thanks a lot for your time, Tim !
35:11 FYI that is not how gravity/acceleration works. You are over complicating it. Gravity does not increase the velocity by more the longer it is falling. The acceleration is constant, meaning the velocity increases by a constant value each time step.
There is a very tricky bug in your code - running animation consists of jump phase and landing phase, and in jumping phase sprite collision detects that he is not touching block and start falling - increase Y position. Then in landing phase you get a collision just by change to next sprite, and this treated by X movement as a collision, and code doesn't change X position. This is easy to see, if you add delay when get X collision, and run left and right.
I'm 01:40 into this video, and I am freaking excited about this!!!! I have a really cool idea for a platformer and I'm hoping this will help me realise it :]
Great tutorial! As a sort of beginner, this was still easy enough to follow. Though some things are still a bit lost on me, like how they actually work. Was thinking of going through most of the stuff in the code and trying to add comments describing what is going on to get a bettter grasp. Edit. my engrish sucks more than I thought
Love the video man. I had so many questions I would looking for the answer to online and you helped me figure it all out. Great work, you're helping so many people.
@@uno3688 I also get an error when I try to add player, it says AttribueError:'Player' object has no Attribute 'draw' and I followed the video 100% up to that point
Okay so i did everything but for each block i make i have to copy and paste the line of code he showed so i was wondering if there's any less of a tedious way to make blocks.
I have a question: Where is the rest of the enemy sprites? I looked on github and could not find the spritesheet? Love your videos especially the pygame ones. Thumbs up and subscribed!
Thanks a lot! To continue, the best way to create (design) the levels for this exact game would be a csv file with the map, where each character translates to a sprite/tile... Because we need an easy way to place the blocks. Let's say a level has 200 x 10 blocks... so we need a csv file with 100 columns and 10 rows... import it and relate it to the tiles.
I'm stumped. Tim's backgrounds are working perfectly and my background remains black. when I click the ❌ to quit, my chosen background is revealed briefly as the window collapses. Its loading the correct image but isn't drawing until after I quit. EDIT! As I was writing out the 'problem' I got an inkling of the solution: I had the indentation fubar'd. tabbed the draw call right once and voila! Now I can continue! Tim moves around so well in the editor that it's critical for me to pay close attention as the indention isn't 2nd nature to me, yet.
Hi Tim! Thanks so much for this I'm excited to get started on it. I was trying to download all the assets from the Github first and for the enemies there's a PNG that says "link on the project page" but I can't see to find that.
When I make my own sprite PNGs with Photoshop I keep getting error 'pygame.error: Unsupported image format' It works just with yours. How did you make them? What's the catch? Thanks
Great work Tim! Any plan on doing some game project using Godot? Its syntax is really similar to Python..but the game engine is much more powerful than Pygame.
I can't load background image because it said FileNotFoundError: No file 'assets\Background\Gray.png' found in working directory Pls help me on that. Thank you so much for your help
I am already getting errors at 31:57 which is stating the error: self.rect.x += dx TypeError: unsupported operand type(s) for +=: 'getset_descriptor' and 'int'
@TechWith Tim First off your amazing and have helped me learn a lot with python , but quick question in your def handle_vertical_collision you make a list with collided_objects but you never go back and reference the list would you be able to explain why, and what is the purpose off appending to the list ?
you have constant size of the window, but what if I need to set it differently for each level of the game? since "window" is parameter of the main function, I don't see any way how to change it inside main game loop :(
This is amazing for learning. Thank you for your time! :) I have a question: Is this the way code and classes are organized in python in general? I have 40k+ hours experience in php and am a technical lead. And for my taste this could use some cleaning.
i have a problem in line player=Player(100,100,50,50). it says that "pygame.sprite.Sprite.add() argument after * must be an iterable, not int" how to fix it
Hi! i need help. In the chapter loading & splitting sprite sheets i got the same Error: "self.sprite = self.SPRITES['idle_' + self.direction][0] KeyError: 'idle_left'". My def of moving in both direction are ok. have anyone an idea? i am a newbie and google don't help :D
I'm just making my first pygame project and was wondering - can I create a separate class for a main loop? I saw someone's code written that way but then someone else advised me that it's not recommended.
Thank you for your interesting video. It is amazing. Can I translate it into my Uzbek language. It would be for those who don't know English. If you permit I will write who is the author of the video and from which channel it is taken. Can I do it?
great video and easy to follow!! I can not seem to find the link for all 20 enemies that are mentioned on an image in the asset folder? do you have the link for this?
Thanks for the video! I've gotten through everything except for adding the fire. When I run the code for the Fire class, it says there is a key error for 'off' based from the line __init__ self.image = self.fire["off"][0]. Any ideas how to fix it?
What are your favourite types of games to make in Python??
TopDown RPG
Thanks I really wanted to make a platformer game
sandbox and simulation
Rpg top down
first thank you a lot because of your tutorials then personally I came toward pygame after python tutorials, to learn how to program and more about python, then I will thank you a lot if you use all advance python topics in your pygame tutorials like decorators or multi-threading and processing and ... 🙏
This guy is pouring so much time into his videos to make it the best. Its absurd that these videos are not getting enough views. We should appreciate people like this. ❤️💯👍
As a beginner python coder: your tutorials help me so much. Keep making them!
This simply deserves way more views
27 Minutes in, you just explained how you need to do all this stuff upfront, before you can explain it, but the brilliant part of that thoughtful consideration of yours is that, I'm completely tracking, following along, and I have a pretty good idea of why you're doing it this way. When I tried an earlier simpler tutorial, I used 'gravity' and 'shift' and an update loop, but didn't yet figure out I needed to determine direction, and played around with animation states equivalent to your animation frames.
Figuring it out on my own for the first time.
So validating to see I was on the right path, and you just cleared all the confusing noise and brush from that path and now I'm speeding along.
Thank you, Tim.
Amazing, simply Amazing, tutorial.
I went back to school to learn Python. Loving it so far! Thanks for the hard work. Subbed.
Great video, Tim!
Comment for the algorithm!
Comment
For the algorithm!
Hail the algorithm!
@@____unknown_____ what 💀
Wow ! I managed to code along until the end. Fantastic content compressed into less than 2 hours ! Have taken away some points for further research. As always, thanks a lot for your time, Tim !
Thanks so much for making these tutorials! I’m definitely one of those “monkey see monkey do” learners and these are incredibly helpful for me
Thank you for the tutorial Tim ! Its incredible how you manage to simplify problems so it is easy to follow and understand
35:11 FYI that is not how gravity/acceleration works. You are over complicating it. Gravity does not increase the velocity by more the longer it is falling. The acceleration is constant, meaning the velocity increases by a constant value each time step.
Thank you for another masterpiece.
Thanks for the comment!
Amazing video as always!
For the algorithm and for my favorite coder on yt! Danke.
You are my favorite coding youtuber
These videos are so underrated they help me so much and are so useful, please keep making them and never stop.
Incredible tutorial! Thanks.
I will work really hard to expand on your amazing game using the assets you provided!
There is a very tricky bug in your code - running animation consists of jump phase and landing phase, and in jumping phase sprite collision detects that he is not touching block and start falling - increase Y position. Then in landing phase you get a collision just by change to next sprite, and this treated by X movement as a collision, and code doesn't change X position. This is easy to see, if you add delay when get X collision, and run left and right.
yea if you spam jump button you will stay in air and even go up if you are fast and how do you fix it ?
@@blackpanda3405 I've uploaded my version of this platformer on GH, user Nick507
Hi tim i am from Pakistan and i follow you since last 1 year and your tutorial is good and i learn from many thing in python
I'm 01:40 into this video, and I am freaking excited about this!!!! I have a really cool idea for a platformer and I'm hoping this will help me realise it :]
What a great tutorial, si much packed into a short video (all things considered)
Great tutorial!
As a sort of beginner, this was still easy enough to follow. Though some things are still a bit lost on me, like how they actually work. Was thinking of going through most of the stuff in the code and trying to add comments describing what is going on to get a bettter grasp.
Edit. my engrish sucks more than I thought
Love the video man. I had so many questions I would looking for the answer to online and you helped me figure it all out. Great work, you're helping so many people.
help why does mine get error on the draw(window, background, bg_image) part??
@@uno3688 I also get an error when I try to add player, it says AttribueError:'Player' object has no Attribute 'draw' and I followed the video 100% up to that point
@@danyalahmed3995 ty, another problem is that I don't use folders like his bcs I just downloaded one bg
@@uno3688 you have to add ,player (after bg_image)
You are my inspo!
I’m really excited to try this!!!
Thank u sm!
Okay so i did everything but for each block i make i have to copy and paste the line of code he showed so i was wondering if there's any less of a tedious way to make blocks.
I have a question: Where is the rest of the enemy sprites? I looked on github and could not find the spritesheet?
Love your videos especially the pygame ones. Thumbs up and subscribed!
Thanks a lot!
To continue, the best way to create (design) the levels for this exact game would be a csv file with the map, where each character translates to a sprite/tile... Because we need an easy way to place the blocks.
Let's say a level has 200 x 10 blocks... so we need a csv file with 100 columns and 10 rows... import it and relate it to the tiles.
Great vid bro! But I couldn't understand how the sprite creating works. I would love if anyone explained it to me in the comments section
I did it!
typed the whole thing.
Pretty neat.
I love this man I have watched all his python videos and his just amazing
My man, you are a real one that saved my mind from disintegrating ❤
I'm stumped. Tim's backgrounds are working perfectly and my background remains black. when I click the ❌ to quit, my chosen background is revealed briefly as the window collapses. Its loading the correct image but isn't drawing until after I quit.
EDIT! As I was writing out the 'problem' I got an inkling of the solution: I had the indentation fubar'd. tabbed the draw call right once and voila!
Now I can continue!
Tim moves around so well in the editor that it's critical for me to pay close attention as the indention isn't 2nd nature to me, yet.
Thanks I have learned a lot of pygame watching and copying your video now I can create my own game
Im currently getting a problem of type error module object is not callable. When i was creating the player i did everything same as 28:32
another amazing tutorial keep it up Tim!!!
To all of the slow typers out there i feel you
Hi Tim! Thanks so much for this I'm excited to get started on it. I was trying to download all the assets from the Github first and for the enemies there's a PNG that says "link on the project page" but I can't see to find that.
Can I use the gif image in the back ground to make it more good???
When I make my own sprite PNGs with Photoshop I keep getting error 'pygame.error: Unsupported image format' It works just with yours. How did you make them? What's the catch? Thanks
Great work Tim!
Any plan on doing some game project using Godot?
Its syntax is really similar to Python..but the game engine is much more powerful than Pygame.
will follow this tomorrow
Great Video - quick question - where do you go to get the pngs for all the assests or how can i create my own?
You're awesome, thanks for your hard work!
Hello. I like your video. I think there is a bug in this program. When player is hitted doesn't work horizontal collide.
Glad I found this.
Excellent tutorial, could you add enemies in a next video?
How do you create multiple flames in your platformer, if I try to make a list just like blocks it gives me an error
Hi I have a question, while moving the character and it staying in idle it bounces up and down. Is there a way to fix it?
I am getting unsupported image format error (using the provided png files) while creating the background (time 13:03) function (def get_background).
I can't load background image because it said FileNotFoundError: No file 'assets\Background\Gray.png' found in working directory Pls help me on that. Thank you so much for your help
classical tim, completely misspelling every text in the middle of a tutorial ☕
Thank you friend
When scrolling the background my blocks move but the collisions don't detect it, any ideas?
did you create pix builder game for samsung smart tv
Insane brother
how can i edit the background, characters and all that???
I am already getting errors at 31:57 which is stating the error:
self.rect.x += dx
TypeError: unsupported operand type(s) for +=: 'getset_descriptor' and 'int'
Great intro and tutorial. Thanks so much :)
Glad you liked it!
@TechWith Tim First off your amazing and have helped me learn a lot with python , but quick question in your def handle_vertical_collision you make a list with collided_objects but you never go back and reference the list would you be able to explain why, and what is the purpose off appending to the list ?
Why doesn't my player flip but I don't get any errors in the code? tell me what's wrong please
hello, I fixed the error at the end of loading sprite sheets but still it couldnt load i tried saving but it still didnt work
how can i make the background move with parallax effect? im new to programming and dont know much, Thankk you!
Thank you very much for that video. Can I use that code and assets in my commercial project? Thank you
you have constant size of the window, but what if I need to set it differently for each level of the game? since "window" is parameter of the main function, I don't see any way how to change it inside main game loop :(
This is amazing for learning. Thank you for your time! :)
I have a question: Is this the way code and classes are organized in python in general?
I have 40k+ hours experience in php and am a technical lead. And for my taste this could use some cleaning.
can i use Pycharn too?? instead of visual code
1:43:34 my program still tells me that the list index is out of range but my code is identical, anyone else have this problem?
Now i can not collide with the top of the fire after drawing it now i have solved the issue.
How exactly do u change the sprites to our liking?
Hello, i was wondering is there a way to change how the player character looks?
[WinError 3] The system cannot find the path specified, this error is coming pls tell what to do
i have a problem in line player=Player(100,100,50,50).
it says that "pygame.sprite.Sprite.add() argument after * must be an iterable, not int" how to fix it
same! did u figure it out?
Very Nice Video 👍👍
Hi! i need help. In the chapter loading & splitting sprite sheets i got the same Error: "self.sprite = self.SPRITES['idle_' + self.direction][0]
KeyError: 'idle_left'". My def of moving in both direction are ok. have anyone an idea? i am a newbie and google don't help :D
Can you make a video on how to do more levels and how to add stuff in to the platformer
Big fan
Pls if possible can you make tutorial or hint on how to make a level editor for this game🙏🙏🙏🙏🙏🙏🙏
my pyame is showing import pygame could not be resolved?
It says i got an invalid syntax on line 1. i typed in: import os
This will get 50 thousand views.
Let's hope!
Your Dice link in the description via bitly isn't working
Thanks a big fan!
***Humble request, please put tutorial for pytest as well 🙏
GREAT JOB!!!!!!!!!!!!!!!!!
I'm just making my first pygame project and was wondering - can I create a separate class for a main loop? I saw someone's code written that way but then someone else advised me that it's not recommended.
Teleqram me 👆⬆️…
Thank you for your interesting video. It is amazing. Can I translate it into my Uzbek language. It would be for those who don't know English. If you permit I will write who is the author of the video and from which channel it is taken. Can I do it?
Hey, my window opens, and then closes, why does it keep doing that?
It says player_vel is not defined im getting a name error someone please help
Does anyone know why the game started stuttering and being unresponsive for some reason? im around 50 minutes in and i noticed that before too
wow huge work
thanks for all video
Could you make a tutorial on how to use Tilemap Editor with Python?
Good job
your channel is pretty!
What platform did you use for coding in this video???
visual studio code with a different theme
great video and easy to follow!! I can not seem to find the link for all 20 enemies that are mentioned on an image in the asset folder?
do you have the link for this?
It’s on the GitHub!
Thanks for the video! I've gotten through everything except for adding the fire. When I run the code for the Fire class, it says there is a key error for 'off' based from the line __init__ self.image = self.fire["off"][0]. Any ideas how to fix it?
A bit late but it seems putting a dot at the end of the strings works.
self.image = self.fire["off."][0]
self.animation_name = 'on.'
thanks!