The ultimate introduction to Godot 4
11:32:41
The complete guide to Python
11:08:59
Breakout in python
3:21:21
2 жыл бұрын
Collisions between moving objects
52:35
Cameras in Pygame
1:13:21
2 жыл бұрын
Understanding Pygame masks
1:00:29
2 жыл бұрын
Debugging in Pygame
12:28
2 жыл бұрын
Creating Space Invaders in Pygame/Python
1:54:50
The ultimate introduction to Pygame
3:47:58
Creating an animated button in Pygame
32:49
Пікірлер
@mwaterl
@mwaterl 2 сағат бұрын
This is fantastic, thank you so much for all your time and effort!
@tranphucanh6689
@tranphucanh6689 3 сағат бұрын
when i run this code, i got this "import timer could not be resovled form source" how can i fix this
@ClearCode
@ClearCode 3 сағат бұрын
apparently it is caused by the pylance module, I guess the easiest way to fix it would be to rename the timer.py file to something like game_timer.py
@user-od9pn2co5c
@user-od9pn2co5c 3 сағат бұрын
Who else woke up to this
@Illager_Fries_Gaming
@Illager_Fries_Gaming 3 сағат бұрын
it's a sign
@maxovina7177
@maxovina7177 4 сағат бұрын
Did they change how the border width works ? It increases thickness for inner border and doesnt expand ouside of score_rectangle size. pygame.draw.rect(screen, 'Pink', score_rectangle) pygame.draw.rect(screen, 'Pink', score_rectangle, 15)
@ClearCode
@ClearCode 3 сағат бұрын
yes, they did! If you want to expand the border you need to expand the rect now via rect.expand. I have made a more updated version that is much better: kzfaq.info/get/bejne/brV9msuVrbaRqqc.html
@maxovina7177
@maxovina7177 2 сағат бұрын
@@ClearCode Thanks for the quick response and help. I will stick with this tutorial only because its length, think thats enough for me to build my own things. Love your explanations and that you include those practices to do our selves. Keep it up !
@tranphucanh6689
@tranphucanh6689 4 сағат бұрын
can i get the source code
@ClearCode
@ClearCode 4 сағат бұрын
it's in the description!
@fury4834
@fury4834 8 сағат бұрын
Any plans on a series (possibly incorporating godot), books, or collaboration one day?
@ClearCode
@ClearCode 4 сағат бұрын
I will do lots of Godot content and probably a course on Godot shaders. Would love to write a book at some point but don't have the time at the moment. And I am too socially incompetent to organize collaborations 😅
@umaphysio
@umaphysio 16 сағат бұрын
I made a game that murders your brain in real life😅
@ClearCode
@ClearCode 15 сағат бұрын
isn't that every videogame? 😁
@ink8660
@ink8660 18 сағат бұрын
LETS GOOOO
@fury4834
@fury4834 19 сағат бұрын
What IDE are you using?
@ClearCode
@ClearCode 15 сағат бұрын
vs code
@zakiaabdlrhem7056
@zakiaabdlrhem7056 Күн бұрын
First off, you are the best person ever, second, i am coding along and at 4:41:07 in: CollisionSprite((obj.x, obj.y), pygame.Surface((obj.width, obj.height)), self.collision_sprites) The surface is black not transparent, Why is it doing that?
@ClearCode
@ClearCode Күн бұрын
are you calling self.collision_sprites.draw() in the game loop?
@zakiaabdlrhem7056
@zakiaabdlrhem7056 Күн бұрын
Yes but it's drawing the surfaces black, they should be invisible that's the whole point
@ClearCode
@ClearCode Күн бұрын
@@zakiaabdlrhem7056 you don't want to draw them at all, the collision will still work
@rahilsondias6629
@rahilsondias6629 Күн бұрын
Amazing tutorial, would really love to see this project remade in Godot!
@hernanpradojuan2687
@hernanpradojuan2687 Күн бұрын
1:19:36 you can control the framerate from within the engine, it's under PROJECT -> PROJECT SETTINGS -> GENERAL tab, on the leftside there are tons of categories and also a search bar at the top, either search for Max FPS or from the left menu look for APPLICATION -> RUN -> Max FPS. Toggle the advanced options if you don't see it I'm not sure if the version you were using while recording already had it but I found this very useful to understand how it impacts using no delta vs using it.
@123Mc54
@123Mc54 Күн бұрын
what editor do you use Clear code
@ClearCode
@ClearCode Күн бұрын
Sublime text in this video but usually VS code
@ahmadabdulrazaq5440
@ahmadabdulrazaq5440 Күн бұрын
Hi, this is probably the BEST tutorial i think i will ever see in my life, from the slow explanation, to the exersices, everything is just pure perfection. I just have a question though, im curerently on the vampire survivor game, is the world.tmx file in the github different from the one in the video?
@ClearCode
@ClearCode Күн бұрын
hey, thank you :) It should be the same, does it look different?
@ahmadabdulrazaq5440
@ahmadabdulrazaq5440 Күн бұрын
Thanks for replying, it does look different, though it does look like a normal map, but different than yours
@ahmadabdulrazaq5440
@ahmadabdulrazaq5440 Күн бұрын
Im pretty sure they are the same but the video has more objects (ex. more trees in the upper-left corner)
@ClearCode
@ClearCode Күн бұрын
@@ahmadabdulrazaq5440 oh damn, sorry about that, if you look at the google drive folder you can find the finished code for each project and the tmx file from the video should be in there; will update the GitHub file tomorrow!
@ahmadabdulrazaq5440
@ahmadabdulrazaq5440 Күн бұрын
No problem in fact i just realized that it doesnt really effect the game that much since its outside of the game border, one more question and im so sorry for bothering you but when we get the collision sprites in: CollisionSprite((obj.x, obj.y), pygame.Surface((obj.width, obj.height)), self.collision sprites) The surface we created is showing up black instead of transparent, how do i fix that?
@jojo-tm3nb
@jojo-tm3nb Күн бұрын
How to add spine animations in pygame
@tornikekavtaradze3375
@tornikekavtaradze3375 Күн бұрын
snail_surface = pygame.image.load("snail/snail1.png") didnt work. I am on a mac and i am using VS code
@ClearCode
@ClearCode Күн бұрын
you forgot the graphics folder in the path
@umardar6551
@umardar6551 Күн бұрын
best free python course available on youtube,i highly recommend this to everyone who is interested in learning python
@claramereca
@claramereca Күн бұрын
after watching like 30hours aka 3 videos :) this is one of the greatest channel I have found your video are so informative, you explain so well this is amazing free class options. Need to sub!
@lukedixon2747
@lukedixon2747 2 күн бұрын
im currently trying to learn python, can anyone tell me how good this video is? and does it take pause breaks and encourage you to try the code yourself before giving the answers? so far it looks good
@mridiot57
@mridiot57 2 күн бұрын
only issue that i had was the _process command was using my native fps (144) so the funny little Godot icon was spinning out of control all the time
@mridiot57
@mridiot57 2 күн бұрын
i realize now that i had not gotten far enough into the video where Clear Code says that's because its not using delta time, and then fixes it
@deathtrooper0016
@deathtrooper0016 2 күн бұрын
I am following the code and I'm at 50:11 in the video and i can't use frect, Visual Studio Code says this when I try and run it "TypeError: unsupported operand type(s) for +=: 'pygame.rect.Rect' and 'float'" what can I do to fix this error and run the game properly?
@ClearCode
@ClearCode Күн бұрын
you need to add one point of the rect; like rect.topleft += vector
@NSA.
@NSA. 2 күн бұрын
big ups bro
@rodrigomagalhaes3183
@rodrigomagalhaes3183 2 күн бұрын
Why is Godot always crashing
@bobbobber4810
@bobbobber4810 2 күн бұрын
Yeah, this is kind of annoying. And I also noticed the more you do testing, the longer it take to do the testing, even the project size didn't have increased. (and is really small in the first place)
@user-yh3dc4sl7j
@user-yh3dc4sl7j 2 күн бұрын
Best pygame tutorial by an expert❤
@komo307
@komo307 2 күн бұрын
I'm giving Godot another shot, currently using version 4.2. I've heard great things about this tutorial, so I'm excited to try it out. However, I'm a bit concerned about the upcoming release of Godot 4.3 and the potential changes it might bring. Will this tutorial still be relevant or harder to follow once the new version is out? Also, any advice for the future would be appreciated. Learning to code is challenging for me, and I don't want to be blindsided by unexpected changes. Thanks!
@ClearCode
@ClearCode 2 күн бұрын
hey, Godot 4.3 won't change that much; the only real difference is going to be for the tilesets. At the moment each layer of the tileset is part of the TileSet node; in 4.3 each layer will be a separate node. It's not much to adjust to :)
@abhijithr5938
@abhijithr5938 2 күн бұрын
hey what theme do u use it looks nice
@ClearCode
@ClearCode 2 күн бұрын
it's the default VS code theme + material icon pack
@swagdog6558
@swagdog6558 3 күн бұрын
The pacing of the introduction of new concepts is perfect. Amazing tutorial, thank you so much! Excited to get going on part 2!
@ClearCode
@ClearCode 2 күн бұрын
ohhh thank you so much! There is going to be lots more Godot stuff this year :)
@swagdog6558
@swagdog6558 2 күн бұрын
@@ClearCode Happy to hear 🙌
@dethmunki4909
@dethmunki4909 3 күн бұрын
When I'm attaching a Node Script, for the template, you have "Node: Default" at 44:42, and "Object: Empty" at 58:37, whereas I have "Using existing script file." and cannot access the dropdown. Is this something I should be do something about or does it not matter?
@reeeper43321
@reeeper43321 3 күн бұрын
Hi I was wondering if anyone could help I uninstalled pygame and installed pygame-ce however I get an error for pygame.math and sprites so when I redownloaded pygame so that I now have both libraries those now work but get_frect no longer works I am very confused on how to fix this
@ClearCode
@ClearCode 3 күн бұрын
if you have both installed you are going to get some weird behaviour. Uninstall both and then only install pygame-ce (apparently, if you install pygame-ce and then uninstall pygame you get some bugs)
@reeeper43321
@reeeper43321 3 күн бұрын
@@ClearCodeyes that worked perfectly thank you so much! Keep up the good work and dedication man ur doing amazing and I aspire to be like u some day
@ClearCode
@ClearCode 2 күн бұрын
@@reeeper43321 I am not actually that good of a coder, if you work hard for a year you should be on a similar level :)
@CekTopGaZa1988
@CekTopGaZa1988 3 күн бұрын
Thank you very much for your tutorials!
@MarcosVinicius-kn8cz
@MarcosVinicius-kn8cz 3 күн бұрын
sou brasileiro e amo seus videos
@akhilallamraju9079
@akhilallamraju9079 3 күн бұрын
I am amazed that a tutorial like this is available for free. Hats off to you, sir and thank you so much
@TheOgg71
@TheOgg71 3 күн бұрын
How do you download the images and folders from github?🥲😅😅😅
@ShaneMajewski
@ShaneMajewski 3 күн бұрын
Incredibly annoyed at the incredibly annoying presenter for incredibly saying incredibly so many times
@ClearCode
@ClearCode 3 күн бұрын
incredibly sorry 😅
@ShaneMajewski
@ShaneMajewski 3 күн бұрын
@@ClearCode Thanks for the training video though. I'm apparently really sensitive to stuff like this
@ClearCode
@ClearCode 3 күн бұрын
@@ShaneMajewski I am trying to work on it, actually; it's annoying me sometimes when I listen back to it... Glad you find it useful otherwise though :)
@calmprotector2593
@calmprotector2593 3 күн бұрын
Thanks!
@ClearCode
@ClearCode 3 күн бұрын
thank you so much! <3
@osanbrazil999
@osanbrazil999 3 күн бұрын
Tkinter is Hell on Earth.
@thegamingwolf2054
@thegamingwolf2054 3 күн бұрын
left off at 3:21:07
@mohamedboumali
@mohamedboumali 4 күн бұрын
how many years you nerd to learn how to do something like this
@91bravic12
@91bravic12 4 күн бұрын
I'm at the 3:20 mark and after added player.update() method, my second player character will not jump. I've gone over the code many times and still nothing, anything I might be missing? Thanks otherwise this has been an amazing tutorial.
@joelarchary7122
@joelarchary7122 4 күн бұрын
1 more video before bed.... the video:
@UNKNOWNS303
@UNKNOWNS303 4 күн бұрын
thankuo sir , completed the whole tutorial , completed it till the last second , not in one go but still , managed to complete it thankyou for posting such informative video
@ilianariesen2957
@ilianariesen2957 4 күн бұрын
For people who don't have windows 11 installed and use a lower version, the changing bar color won't work because DWMWA_CAPTION_COLOR (35) is added from Windows 11 Build 22000.
@bulkierpanda133
@bulkierpanda133 4 күн бұрын
Wow only been 30 minutes into the video I'm already thinking about creating art and also making it move this is awesome
@mkaks22gamerserise16
@mkaks22gamerserise16 4 күн бұрын
bro in signal part i have working code but other code that i create by myself and it work on differently but do same thing in my code it start and it if can_laser == false: can_laser - true
@gaWalt
@gaWalt 4 күн бұрын
I'm following along and coding the space shooter game. All the code worked great until I got to the part where I added "global running" to the collisions() function. I created the laser Group, "laser_sprites = pygame.sprite.Group()" . Here's my function: def collisions(): global running collision_sprites = pygame.sprite.spritecollide(player, meteor_sprites, True) if collision_sprites: running = False for laser in laser_sprites: collided_sprites = pygame.sprite.spritecollide(laser, meteor_sprites, True) if collided_sprites: laser.kill() For some reason the meteors don't register as colliding with the player therefore the game doesn't stop or end. I've gone over my code many times but can't find any errors. Do you have any suggestions? Thanks, Gary
@ClearCode
@ClearCode 4 күн бұрын
are you assigning the meteors to the 2 groups when you create them?
@gaWalt
@gaWalt 4 күн бұрын
Sprites are new to me. Where and how do you assign the meteors to the 2 groups? Isn't that being done in the 2 variables, in the "collisions()" function, "collision_sprites" and "collided_sprites"?
@ClearCode
@ClearCode 4 күн бұрын
@@gaWalt when you create a meteor there is a groups parameter, for the meteors it should be all_sprites and meteor_sprites inside of a touple
@gaWalt
@gaWalt 2 күн бұрын
This is what I have: Meteor(meteor_surf, (x, y), (all_sprites, meteor_sprites)) I've been using the exact same code that you're using in the tutorial. I could have made a typo error but I've checked over my code several times and haven't found any errors. I can place the "terminate()" function inside the collision function, inside the "if collisions:" statement and my game ends when a meteor collides with the player.
@MaxJ345
@MaxJ345 5 күн бұрын
Great video! I've heard that tying animation speed to frame-rate is "a bad thing to do". Is this true? Why? What are the other options?
@ClearCode
@ClearCode 4 күн бұрын
you could use a timer to update a frame every 1/10 of a second or something but I haven't really encountered problems why the animations on delta time
@TheCrewExpendable
@TheCrewExpendable 2 сағат бұрын
You don't want to tie animation to a specific frame rate. In other words, you don't want to hard code an animation to run at 30 fps because it will run twice as fast as it should at 60fps and 4 times as fast at 120fps. This is why a lot of old PCs had a "turbo" button on the case to toggle the CPU between full clock rate and a slower clock rate. A lot of old games and software didn't limit frame rate in code and didn't really take frame rate into account, so e.g. an old PC game would run at an unplayable 900 fps on newer hardware and characters and enemies would move around at light speed and music would be on fast forward or would just break.
@s1lkysl1m83
@s1lkysl1m83 5 күн бұрын
i liked, subscribed, and am now commenting after just watching the intro. brilliant game idea
@bhunivelze6704
@bhunivelze6704 5 күн бұрын
🤘Lets F&*#@ng Do This!🤘
@mightbeeseventyseven6032
@mightbeeseventyseven6032 5 күн бұрын
please be advised that in order to be able to properly use FRect in pygame you must have the pygame community edition installed. The original pygame does not support frect...
@jpz-og3ki
@jpz-og3ki 5 күн бұрын
How to create a 1:1 code map