Python Platformer Game Tutorial for Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ม.ค. 2025

ความคิดเห็น • 233

  • @Omni-cu2fk
    @Omni-cu2fk ปีที่แล้ว +101

    Hattsoff!!!! To all of your team that you’re providing all these useful courses free of cost

  • @androspuddy2
    @androspuddy2 ปีที่แล้ว +33

    Thanks a million Tim! I've been searching for two months now for a tutorial exactly like this to do a project with my son. My search is over!

    • @AnaLogical-rx1oj
      @AnaLogical-rx1oj 3 หลายเดือนก่อน

      @DANtheman-90bestie he is clearly not a professional programmer. Why would an adult (he has a son old enough to code with) programmer who, by virtue of being an adult, has a few good years of work under his belt, even need a tutorial for this.

    • @RiderFlashGD
      @RiderFlashGD 22 วันที่ผ่านมา

      @@AnaLogical-rx1oj Because it's for his son. Not him.

  • @Joao-oz5vj
    @Joao-oz5vj 9 หลายเดือนก่อน +1

    Best tutorial of the kind. Not too slow that takes 5 hours just to insert a block, not too fast that we dont understand. Perfectly timed, well done!!!

  • @KittenBand
    @KittenBand ปีที่แล้ว +27

    I'am 43 , I did it! I just finished your course .. thank you Tim

    • @gelomelo8968
      @gelomelo8968 9 หลายเดือนก่อน +1

      it feels great that, people like your age is doing this. keep it up sir

  • @Suhas-hf1rm
    @Suhas-hf1rm 7 หลายเดือนก่อน +6

    This is crazy I've been searching for a tutorial like this for years. Thank You Tim!!!!

  • @smoothbeak
    @smoothbeak ปีที่แล้ว +13

    The box collision and mask collision stuff was very interesting. I remember as a kid that was one of the frustrating things when you "hit" something and the actual visible character clearly did not hit.

  • @ClaudioBOsorio
    @ClaudioBOsorio ปีที่แล้ว +14

    This is amazing. I skimmed through the video because I dont have much time but I really want to watch this. Saved for later

    • @gabrielgarcia5040
      @gabrielgarcia5040 ปีที่แล้ว

      Did you watch it?

    • @ThatOneSweat
      @ThatOneSweat 10 หลายเดือนก่อน

      Did you watch it yet?

    • @Markofka
      @Markofka 6 หลายเดือนก่อน

      Did you watch it yet?

  • @gavin.d.m
    @gavin.d.m 10 หลายเดือนก่อน +1

    Im very new to Python, and reigniting my interest in programing. This has whet my appetite to keep going in my learning. Thank you

  • @thoufeeq1227
    @thoufeeq1227 ปีที่แล้ว +7

    You guys are so super i don't have words to appreciate you.Thnks for this video ❤❤

  • @FRAMEDSKATEKREW69
    @FRAMEDSKATEKREW69 ปีที่แล้ว +25

    I remember trying to look up a tutorial like this and never found one this good for python. THANK YOU SO MUCH. I plan to build a small game maybe the scale of the first Mario and really hope it either lands me a job or at least some donations from fans 😂 I’m so excited to try this out this weekend

  • @bcgamer2
    @bcgamer2 6 หลายเดือนก่อน +1

    Great and super easy to follow tutorial! I learned a great deal! Thanks so much, Tim!!!

  • @gabriellita7236
    @gabriellita7236 3 หลายเดือนก่อน +1

    I completed the full tutorial. It was very good even though some parts of code not really explained. However, now I'm going to add my own things to the game and i think that will give me better understanding of the code too. Thanks a lot for the tutorial.

  • @LordJuanse
    @LordJuanse 10 หลายเดือนก่อน +1

    Excellent tutorial mate!

  • @jacobwestbrook9527
    @jacobwestbrook9527 10 หลายเดือนก่อน +1

    I can finally watch this with confidence, I guess I'll see how it goes

  • @Robay146
    @Robay146 ปีที่แล้ว +4

    This is a great introduction to python for gaming.

  • @dargon-k4z
    @dargon-k4z 2 หลายเดือนก่อน

    Thanks Tim! After I'm finished, I am going to tweak the code a bit!

  • @Hazzel31337
    @Hazzel31337 ปีที่แล้ว +4

    nice i used a lot of tims tutorials to learn python, can recommend !

    • @andrewbogard2411
      @andrewbogard2411 6 หลายเดือนก่อน

      I am on the journey to a programming degree and my goal is to program at least one game with every programming language that I learn. With the ultimate goal of designing and coding my own game eventually .

  • @backpackingkat6320
    @backpackingkat6320 ปีที่แล้ว +1

    Omg yay! I can’t wait to try this

  • @Sipliks-l9g
    @Sipliks-l9g 2 หลายเดือนก่อน +2

    I know you're probably not gonna see this but THANK YOU I AM ON animating the player halfway through finished the x animation but not jumping running or falling yet also THANK YOU AGAIN.

    • @bloxgamingRL
      @bloxgamingRL 2 หลายเดือนก่อน

      bro chill

    • @Sipliks-l9g
      @Sipliks-l9g 2 หลายเดือนก่อน

      @bloxgamingRL huh

  • @JonathanTrinityMartin
    @JonathanTrinityMartin 5 หลายเดือนก่อน

    Throrougly enjoying this so far❤❤❤🎉

  • @dreamentstudios
    @dreamentstudios ปีที่แล้ว +1

    Absolutely amazing video!

  • @Fetrah2
    @Fetrah2 ปีที่แล้ว +8

    ⭐ Timestamps ⭐
    ⌨ (0:00:00) Project Demo
    ⌨ (0:01:32) Project Brief/Getting Started
    ⌨ (0:03:07) Project Setup
    ⌨ (0:04:18) Asset Walkthrough
    ⌨ (0:05:38) Game Setup
    ⌨ (0:10:57) Generating The Background
    ⌨ (0:18:15) Creating The Player
    ⌨ (0:27:39) Moving The Player
    ⌨ (0:31:20) Adding Gravity
    ⌨ (0:35:19) Loading/Splitting Sprite Sheets
    ⌨ (0:48:50) Animating The Player
    ⌨ (0:56:14) Adding Terrain/Blocks
    ⌨ (1:08:51) Pixel Perfect Collision (Vertical)
    ⌨ (1:14:48) Jumping & Double Jumping
    ⌨ (1:22:28) Scrolling Background
    ⌨ (1:27:53) Pixel Perfect Collision (Horizontal)
    ⌨ (1:36:16) Adding Traps (Fire)
    ⌨ (1:45:09) Player Collision With Traps
    ⌨ (1:50:51) Conclusion

  • @angus3963
    @angus3963 ปีที่แล้ว +1

    Woo! Nice one!

  • @InfernalPasquale
    @InfernalPasquale ปีที่แล้ว +4

    1:35:40 I notice that when I jump and land on the very edge of the block, it triggers the falling animation - wondering how to fix this?

  • @jamalmohammed4350
    @jamalmohammed4350 ปีที่แล้ว +1

    Tech with Tim good programmer
    channel was very understable

  • @mikeyoung5029
    @mikeyoung5029 ปีที่แล้ว +25

    I found that to be able to run the tutorial with a double-click in Windows (rather than via the development environment), I needed to add the line:
    mypath = os.path.dirname(os.path.realpath(__file__))
    near the start of the code (I put it after the line setting the caption),
    and then change the joins that specify "assets" from
    path = join("assets",
    to
    path = join(mypath, "assets",
    This is needed because double-click does not set your starting directory to the one where the code is stored, so the assets folder can't be found.

    • @yotacaz
      @yotacaz ปีที่แล้ว +1

      you just saved my day

    • @king_roblox2000
      @king_roblox2000 ปีที่แล้ว

      yes i fixed it thanks a lot!

    • @DeepanshuSharma-v9e
      @DeepanshuSharma-v9e 2 หลายเดือนก่อน

      I'm facing the issue of the directory for 3 weeks 😢I will try your method to solve it I'm working in pycharm

  • @prosword3137
    @prosword3137 5 หลายเดือนก่อน

    This has help me a bunch the way he shows the code and explain the input methods give me total controle **newmember alert**

  • @CowboyCanadian
    @CowboyCanadian ปีที่แล้ว +2

    Love this ❤

  • @yrds96
    @yrds96 ปีที่แล้ว +3

    Considering pygame it's a SDL wrapper, this tutorial is useful for C++ programmers who are using SDL to game games aswell
    Great tutorial!

    • @TheRaylan20
      @TheRaylan20 8 หลายเดือนก่อน

      what is a SDL wrapper?

    • @TheRaylan20
      @TheRaylan20 8 หลายเดือนก่อน

      @@yrds96 So, this is something like, how do you write the code for the program runs faster?

    • @TheRaylan20
      @TheRaylan20 8 หลายเดือนก่อน +1

      @@yrds96 Oh, I see. Then, It's basically a trick. That's good to know.

  • @Android-17
    @Android-17 ปีที่แล้ว +2

    This is excellent!
    Thanks.

  • @hexxidelux6224
    @hexxidelux6224 ปีที่แล้ว +13

    Hey, would you folks ever consider making text tutorials? I suffered a concussion middle of last year and even though I'm out of the 7 month window of recovery, it seems that migraines and audio sensitivity are going to be a thing for me for... who knows how long. So, I have my own personal reasons for wanting text tutorials, but I can't be the only one who would like to see one or two? Ty

    • @linusyong4731
      @linusyong4731 ปีที่แล้ว

      you can find the transcript of it in the description. I hope you get better soon.

  • @marcosaznar962
    @marcosaznar962 2 หลายเดือนก่อน

    THANK YOU SO MUCH!

  • @codybond4446
    @codybond4446 ปีที่แล้ว

    Thank you very much for posting this video....
    😀😀😀😀

  • @VeljkoJevtic
    @VeljkoJevtic ปีที่แล้ว

    Hvala Brate! :)

  • @chip3194
    @chip3194 7 หลายเดือนก่อน

    Nice guide
    THANK YOU!!

  • @star._.dust._.
    @star._.dust._. ปีที่แล้ว

    YOU'RE AMAZING!

  • @zyonrams9432
    @zyonrams9432 ปีที่แล้ว +66

    its very fast paced and its a lil hard to keep up and the details are not much discussed and why the code is structured that way, lil confusing

    • @pexkk
      @pexkk ปีที่แล้ว +11

      skill issue

    • @flowersArePretty1
      @flowersArePretty1 ปีที่แล้ว +10

      I agree

    • @Show1.
      @Show1. ปีที่แล้ว +6

      Exactly

    • @ThisIsACreativeName
      @ThisIsACreativeName ปีที่แล้ว +4

      Yeah, I had to rewind the video a lot

    • @zdiddy4112
      @zdiddy4112 ปีที่แล้ว +3

      Any time I watch Tech with Tim, I slow down the video by 0.25 to 0.50 and can usually keep up to pace without pausing or rewinding much, it just makes him sound a little drunk sometimes..

  • @vijaysamant2864
    @vijaysamant2864 10 หลายเดือนก่อน +1

    Are the assets public domain? If someone wants to use them commercially, can they?

  • @seif..star.0
    @seif..star.0 ปีที่แล้ว +1

    Amazing

  • @mariabuys9620
    @mariabuys9620 ปีที่แล้ว

    Wow That so cool😁

  • @das-d1106
    @das-d1106 ปีที่แล้ว +1

    I am at 1:14:00 in the Video and I have the problem that my Charakter dissapears after ~4 sec cant find the misstake I have made can anyone help me? solved the problem!
    Thanks for the Video

    • @ThatOneSweat
      @ThatOneSweat 9 หลายเดือนก่อน

      Can i see your code? and are there any error you encounter?

  • @CodewithYusuf
    @CodewithYusuf ปีที่แล้ว

    So great 😀 ❤

  • @saidneder41
    @saidneder41 ปีที่แล้ว +1

    Let's good Tim!

  • @fried7431
    @fried7431 ปีที่แล้ว +2

    having a problem at 54:24 where my code is saying "" 'pygame.Rect' object has no attribute ''topLeft' " i am using replit, idk if that changes anything but if I could any help it would be appreciated :)

    • @loganjames2638
      @loganjames2638 ปีที่แล้ว +1

      Use "topleft" not "topLeft", I had the same problem but looking through the PyGame documentation helped with that.

    • @michaelsekelsky4875
      @michaelsekelsky4875 8 หลายเดือนก่อน

      @@loganjames2638 Thank you so much, I couldn't figure out what was wrong.

  • @hanzalashah6555
    @hanzalashah6555 5 หลายเดือนก่อน

    you are super genius

  • @batcracka
    @batcracka ปีที่แล้ว

    WHY CANT EVERYONE BE AS DOPE AS THE BEGINNING BRO SAID IF THAT DOESNT WORK THEN HERES 5 OTHER OPTIONS AND 2 VIDEOS damn bro cares :)

  • @octopuzzi
    @octopuzzi 3 หลายเดือนก่อน

    30:38 why is there the FPS parameter when it isn't even used? sorry if i sound rude i am just very confused and struggling on how to fix my code LOL

  • @danyalahmed3995
    @danyalahmed3995 ปีที่แล้ว +1

    I am having trouble where on line 69 27:29 where he placed player.draw(window) and run the script it launched, but for me it gives the error of AttributeError: 'Player' object has no attribute 'draw' what should I do?

    • @eggsisnice
      @eggsisnice ปีที่แล้ว

      Hi did you ever find a fix for this? Having the same problem and can't seem to solve
      Thanks

    • @danyalahmed3995
      @danyalahmed3995 ปีที่แล้ว

      No I couldn't, I can't find anyone who can help with me this specific problem

    • @linusyong4731
      @linusyong4731 ปีที่แล้ว

      can you describe the error i might be able to help

    • @temitopeolarinde1700
      @temitopeolarinde1700 8 หลายเดือนก่อน

      @@linusyong4731 i'm having the same issue. it just says 'Plater" object has no attribute 'draw'

    • @temitopeolarinde1700
      @temitopeolarinde1700 8 หลายเดือนก่อน

      nvm i figured it out

  • @angelicaignacio9109
    @angelicaignacio9109 ปีที่แล้ว +3

    hello, I am having a problem at 48:34 at the def draw. I keep on getting this error in the terminal (KeyError: 'idle_left'). I've tried to fix this problem multiple times by rewatching and recoding it but I still can't seem to solve it.
    def draw(self, win):
    self.sprite = self.SPRITES["idle_" + self.direction][0]
    win.blit(self.sprite, (self.rect.x, self.rect.y))
    I belive this is the code that keeps on erroring but I do not know how to solve it.

    • @jagzey
      @jagzey ปีที่แล้ว +1

      the ‘if direction:’ conditional within the load_sprite_sheet function needs to be within the first for loop called ‘for image in images’, not just in the function, that fixed it for me

    • @JDYouTube-r8g
      @JDYouTube-r8g ปีที่แล้ว

      How did you fix it I have a same problem

    • @otavio_rodrigues1823
      @otavio_rodrigues1823 ปีที่แล้ว +1

      I was having the same problem, and it was happening because an identation error. For me, it was in th load_sprite_sheets function: the return of the function must be out of the else block, otherwise it wont work properly.

    • @LuisGonzalez-pc3zw
      @LuisGonzalez-pc3zw ปีที่แล้ว

      Thank you so much@@otavio_rodrigues1823

  • @Imnotsoumyajit
    @Imnotsoumyajit ปีที่แล้ว

    Tim is a really good teacher.... hats off 🫂

  • @fanitram
    @fanitram ปีที่แล้ว

    01:18:40 I can only jump the number of times it say: player.jump_count < 2
    01:27:50 Is there a fast way to add floor?
    01:03:00 I checked it, every square in the terrain image is 8 px, it's 12 squares from edge to this image, 12*8=96
    cant't find enemies file

  • @tejaswithme3713
    @tejaswithme3713 ปีที่แล้ว

    Thanks team~

  • @Robot_Skull
    @Robot_Skull ปีที่แล้ว +1

    1:28
    "Jesse, we need to code"

  • @devinmorton7390
    @devinmorton7390 ปีที่แล้ว

    Thank you!!!

  • @ducaminimo1978
    @ducaminimo1978 ปีที่แล้ว +2

    muito obrigado pela Magnifica aula

  • @thoserandomshredders
    @thoserandomshredders ปีที่แล้ว +2

    Just Wondering: How Do You Add Multiple Fires?

  • @Eren__Zana
    @Eren__Zana ปีที่แล้ว

    great!

  • @satyre5844
    @satyre5844 11 หลายเดือนก่อน +1

    does anyone know how to make it scroll upwards instead of side to side

  • @fahimnizar254
    @fahimnizar254 ปีที่แล้ว +2

    Need help,
    when i try to run the code on "Pixel Perfect Collision (vertical)" portion, i got error:
    AttributeError: 'NoneType' object has no attribute 'overlap'

  • @miroslavlovas7099
    @miroslavlovas7099 9 หลายเดือนก่อน +1

    Got 2 questions Tim, why u dont use Sprites in pygame and what is the other way to bypass Sprites?

  • @Ice_2192
    @Ice_2192 9 หลายเดือนก่อน

    This is great but some visual explanation would help next time something similar to networkchuck but without the over-the-top energy.

  • @aloneinthenight
    @aloneinthenight 8 หลายเดือนก่อน

    8:45 __main__
    12:48 running from correct directory
    1:20:20 animation to jumps do I need not rlly

  • @vaclavhanzl8193
    @vaclavhanzl8193 6 หลายเดือนก่อน

    Any tips on how to learn such things? How to approach this trying it on my own? This thing seems too complicated to just somehow start learning and applying this by myself...

  • @craftyindianpotato3049
    @craftyindianpotato3049 5 หลายเดือนก่อน

    I am 12 and I could do it thank you so much

  • @4nvv4R
    @4nvv4R 10 หลายเดือนก่อน +1

    why those the game get slower when you make the game window bigger ?

  • @Beki_Playz
    @Beki_Playz 2 หลายเดือนก่อน

    how do we add another image ike a terrain ? not a different terrain type just another one

  • @hoseinhoseini-q8v
    @hoseinhoseini-q8v 5 หลายเดือนก่อน

    How can I find the continuation of your tutorial about the platformer game?

  • @edmedeiros9944
    @edmedeiros9944 ปีที่แล้ว

    Thanks so much for putting these tutorials out there. One of the things i don't understand is how do you know what functions to use within the PyGame library (Or any library for that matter)?
    I do know where to find the documentation online but it seems like a lot of info to parse through. Or do I just need to bite the bullet and RTFM? haha.

  • @Joshkelinen
    @Joshkelinen 14 วันที่ผ่านมา

    Its not likely ill get ansers but how whould i make my own sprites and switch these for my own tho youres will look beter.

  • @hürriyetpalestine
    @hürriyetpalestine ปีที่แล้ว +1

    Where to get the enemies? says link in project page, but no link.

  • @talentoftheworld0711
    @talentoftheworld0711 5 หลายเดือนก่อน

    In class Block(Object)
    The line no. 131 shows a error : TypeError: object.__init__() takes exactly one argument (the instance to initialize)

  • @bitteerloesmich
    @bitteerloesmich 8 หลายเดือนก่อน

    I love this work! I am currently working on a similar game for uni, does anybody know how i could make those sprites myself? Any tool recommendations?

  • @codemedio6418
    @codemedio6418 3 หลายเดือนก่อน

    Do we have score also for this game ?

  • @vision_lc
    @vision_lc ปีที่แล้ว

    Tech with tim

  • @EnzoSnyman
    @EnzoSnyman ปีที่แล้ว +2

    Love the tutorial so far, but I've run into a snag and can't seem to get around it. I installed pygame through VSC but when I run the script to test whether it quits the game window, it gives me "ModuleNotFoundError: No module named 'pygame' " because my pygame installation is located under Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pygame (using Mac) -- any suggestions?

  • @oneprez
    @oneprez 6 หลายเดือนก่อน

    Hey this is very late but while I was following the tutorial on the draw player part I'm getting an error saying "player is not accessed Pylance" and I'm unsure of what is causing it or what it means. If you can lmk how to fix it that would be amazing! Thanks.

  • @wowhow3905
    @wowhow3905 ปีที่แล้ว

    Thank you so much! I'll try it right now

  • @digitaldeveloper9
    @digitaldeveloper9 ปีที่แล้ว

    Thanks for your tutorial.
    How can make this game mobile compatible for ios/android?
    Please let me know the possibilities.

  • @relaxecomvideosdivertidos3905
    @relaxecomvideosdivertidos3905 7 หลายเดือนก่อน

    just when I close the application, appears to me the 'blue' blackground, instead of this appears black, why?

  • @Valentina_kujo
    @Valentina_kujo ปีที่แล้ว

    in Generating the backround, how in line 40 you make two variables take 2 values if there is only one? im having this error: ValueError: too many values to unpack (expected 2)

  • @lm2thed142
    @lm2thed142 10 หลายเดือนก่อน

    recreating the follw up on scripts , when making call player and just drawing it with the rectangle . i found out I put pgyame.rect but it required a pygame.Rect , that claimed a value error :(

  • @NageshP-te6um
    @NageshP-te6um 8 หลายเดือนก่อน +1

    Wooooooooooooooooooooooooooow

  • @utkarshaggarwal3706
    @utkarshaggarwal3706 10 หลายเดือนก่อน

    How to add fire trap at other positions as well

    • @ThatOneSweat
      @ThatOneSweat 9 หลายเดือนก่อน +1

      In the "def main(window):" each time the "fire" Variable is called, i make a duplicate called "fire1".
      like this:
      fire = Fire(100, HEIGHT - block_size - 64, 16, 32)
      *fire1 = Fire(100, HEIGHT - block_size - 64, 16, 32)*
      fire.on()
      *fire1.on()*
      in the "objects" variable i do this:
      objects = [*floor, Block(0, HEIGHT - block_size * 2, block_size), Block(block_size * 3, HEIGHT - block_size * 4, block_size), fire, *fire1* ]
      and i add another loop too:
      fire.loop()
      *fire1.loop()*

  • @thecritiquer9407
    @thecritiquer9407 5 หลายเดือนก่อน

    ❤❤❤

  • @SpaceHasCripplingGamblingDebt
    @SpaceHasCripplingGamblingDebt ปีที่แล้ว

    How can u run the file with a lot of problems I have one and it just crashes does anybody know how to fix it I installed the pygame module but it still didn't work

  • @stuff9283
    @stuff9283 ปีที่แล้ว

    Cool

  • @shaunduzstuffs
    @shaunduzstuffs ปีที่แล้ว

    The assets list makes it seeem like there is way more than this that you didnt go over. Its like this is a part 1 that never got a part 2

    • @lm2thed142
      @lm2thed142 10 หลายเดือนก่อน

      assets , lists are just ways to bring images and other animations into code since you cant really make them in python besides creating turles etc. U make these in things like a sprite maker online or anything with the correct scale.

    • @shaunduzstuffs
      @shaunduzstuffs 10 หลายเดือนก่อน

      @@lm2thed142 I'm aware of that. I'm talking about the assets themselves suggesting there is more to this, such as assets for enemies

  • @keisharalvina1192
    @keisharalvina1192 2 หลายเดือนก่อน

    I have installed pygame, but why does it say import phygame ModuleNotFoundError: No module named pygame

  • @gelomelo8968
    @gelomelo8968 9 หลายเดือนก่อน

    hey! can i use intellij idea to code this game

  • @touchedbygod235
    @touchedbygod235 ปีที่แล้ว +2

    thank you i always dreamed to make a game and publish it i am 9

  • @WizavPRO
    @WizavPRO ปีที่แล้ว +2

    I watch Pygame tutorials so I can build my game in C SDL2 - it's literally the same library.

  • @mayam9478
    @mayam9478 8 หลายเดือนก่อน

    Why does it say “for beginners” in the title but in the brief it says you should be intermediate???

  • @dosomethingwild4999
    @dosomethingwild4999 8 หลายเดือนก่อน

    This Tutorial is good but has a HUGE issue. since we are resetting the x.vel so the player doesnt move on toggle, but on hold... everytime the function is called we are resetting to the idle sprite. its not super visilible with this specific animation but its a BIG PROBLEM. maybe try to use on keydown instead of keys? idk

    • @dosomethingwild4999
      @dosomethingwild4999 8 หลายเดือนก่อน

      You can check this by adding print(sprite_sheet)

    • @dosomethingwild4999
      @dosomethingwild4999 8 หลายเดือนก่อน

      I cant believe this isnt in the comments. did everyone fallow line by line XD ?? hahaha no one tried different assets/animations....

  • @musicfan4952
    @musicfan4952 ปีที่แล้ว +1

    For some reason whenever my character touches the ground it keeps bouncing on it, i double check the code with the one Tim had and I can't find the problem, anyone have any idea what could cause it?

    • @itsSoulTorpedo
      @itsSoulTorpedo ปีที่แล้ว

      i changed my sprite to something with other dimension (200x200) and seem to be encountering the same thing
      lmk if you find something to fix this

  • @DeepanshuSharma-v9e
    @DeepanshuSharma-v9e 2 หลายเดือนก่อน

    I'm facing directory issue in pycharm to load background image can anyone help me im stuck on this from 3 weeks

  • @BEEZY-c7q
    @BEEZY-c7q ปีที่แล้ว

    This video seems cool but I've run into a problem. I'm on the part where we're making the window. when I tried to run the code I wrote and the tutorial code, it said " Traceback (most recent call last):
    File "C:\Users\freeg\PycharmProjects\pythonProject31\main.py", line 24, in
    if _name_ == "_main_":
    NameError: name '_name_' is not defined " what can I do to fix this?

    • @NolanJacob-u4y
      @NolanJacob-u4y 11 หลายเดือนก่อน

      main should have double underscores around it

    • @ThatOneSweat
      @ThatOneSweat 9 หลายเดือนก่อน

      yeah it should look like this: if __name__ == "__main__":

  • @MikeHart66
    @MikeHart66 ปีที่แล้ว

    Tried the code from the GH repository. When you run to a side, why is it so visible that the scrolling of the floor is not smooth at all?

    • @ThatOneSweat
      @ThatOneSweat 9 หลายเดือนก่อน

      Its probably because the width and height are too big, try scaling it down a bit

  • @transformers712
    @transformers712 9 หลายเดือนก่อน

    After creating the background my separate window just keeps shutting down and I figure out why?

    • @ThatOneSweat
      @ThatOneSweat 9 หลายเดือนก่อน

      Can i see your code? and is there any error that showed up?

  • @fabriciogonzalez4253
    @fabriciogonzalez4253 ปีที่แล้ว

    Thanks! It was fun but it works very laggy on my computer (and I don't know why, it's a good computer).

  • @HaizeScreen
    @HaizeScreen ปีที่แล้ว

    what to do if the window doesn't pop up when running the program