Hello, I have a question if you reply with ur email I could forward you my code and the issue is that I’m having trouble implementing this games menu into my existing game
@brunopauletti19618 күн бұрын
in "def get_font(size):" what you put in?
@el_mapache448613 күн бұрын
Very usefull thank you very much, I edit the code a little bit because I made the buttons transparent because I already made in paint the menu backgrounds with the buttons lol, so I only situated empty png images over the "buttons" to seems like that you're pressing a button xd
@marcinbaryka149016 күн бұрын
I think you forgot about mixer initialization. Without this it would not gonna work: "pygame.error: mixer not initialized".
@dgofficial-r5f22 күн бұрын
I need help. When I finish creating the paddles, the game screen shows nothing but a black screen. Is there anyway to fix it?
@TheDefilerAzog23 күн бұрын
u need more subs this is actually so good.
@TheDefilerAzog23 күн бұрын
thank you
@tbinaryg26 күн бұрын
thanks, this was really useful
@ludvig774929 күн бұрын
btw if you want the ai a bit faster just chance the value to 2 it moves faster :)
@gordonmctague1723Ай бұрын
I'm haveing trouble importing the gui
@UsernameaBadАй бұрын
thanks
@tasmiatasnim-pw7gmАй бұрын
I don't understand one thing, y_pos = y_pos - jumpvel(10) wouldn't it go way up the screen then vel would become 9,8... to 0 won't this be beyond our screen. i get it how it goes up and then down but i didn't understand this part. Upward movement: 10 + 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1 = 55 units Downward movement: 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 = 55 units why it doesn't look like it jumped 55 units
@Darkmatter321Ай бұрын
Can I have the goat?
@popomasherАй бұрын
I found a work around for this gettging the FONT errors and put in LargeText but now am putting the elif event.key, and I am getting no module for key? pygame.event.event' object has no attribute 'key' anyone else get that or know a work around??
@sanaaaaa6662 ай бұрын
if i want to use multiple files how do i call the functions as the mouse is pressed?
@yarin83502 ай бұрын
Amazing tip on how to use multiple screens! I had a big issue with having different resolutions for my main menu and gameplay and this really helped. Thanks a lot!
@N3id12 ай бұрын
how do i get the font?
@amraam87232 ай бұрын
Whats the song? :)
@MowiWowi2 ай бұрын
So satisfying seeing code work so perfectly
@abdulrahmanabusharbain75072 ай бұрын
for 19:15 couldn't you just do self.__init__()?
@gamalielgerona23913 ай бұрын
Nice. Now I can enable jumping for my PyGame Slime Destroyer project. You got a subscriber.
@gamalielgerona23913 ай бұрын
Thanks for this tutorial! Now I can add that to my game
@krzysztofuczkowski62743 ай бұрын
Simple and quick to the point. This is exactly what we need in the education system. I never expected that at the age of 21 I would be learning from a 14-year-old (I mean, if you're 16 now, you'll be 14 then, hah), but you have to learn from everyone, regardless of age. There's a sub and a symbolic amount. I hope, that you will have a wonderful day and that I will see more of you at such a high level as the mountains in Nepal!Simple and quick to the point. This is exactly what we need in the education system. I never expected that at the age of 21 I would be learning from a 14-year-old (I mean, if you're 16 now, you'll be 14 then, hah), but you have to learn from everyone, regardless of age. There's a sub and a symbolic amount. I hope, that you will have a wonderful day and that I will see more of you at such a high level as the mountains in Nepal!
@sanjeevmonica3 ай бұрын
How do I attach the background?
@user-gq4iv5qi5t3 ай бұрын
can you also show the get_font() class?
@MSTSLive3 ай бұрын
Bro After I run the programme it is saying that FFMPEG is not added to $PATH. What is the solution to this
@georgestavlas92493 ай бұрын
my program does not recognise the pymediainfo and ffpyplayer.player, does anyone know whats wrong ?
@loriingram41753 ай бұрын
Thanks. I'm not sure exactly what you did because I'm in the learning process and don't know all the terms to Google some of the help I need yet for more efficient research, but that was it, whatever it was, and I finally got my sound effects code to respond as I intended after user input. I think also having the GitHub link to have another look at the formatting and change the file names to match my own sounds for something that responded to input the same way I needed it to also helped it sink in better than either just a code document or just a video.
@baraltech3 ай бұрын
No problem! Glad to help
@WhatsInYourHead_3 ай бұрын
I added all the image files to my game folder and the screen is still black. Explanation? Also I am using an IDE called replit.
@GodbornNoven3 ай бұрын
How do i calculate the probability??
@gamalielgerona23913 ай бұрын
Great tutorial!
@baraltech3 ай бұрын
Thank you!
@BardockSuperZ4 ай бұрын
Nice tutorial , i copied the logic of your tuto for apply in the ursina engine
@baraltech3 ай бұрын
No problem! :)
@stregone4 ай бұрын
you forgot to add: pygame.mixer.init()
@gracechan30394 ай бұрын
Just found your channel. Really love your tutorial style. It's no fluff, to the point and well illustrated. It's wild that you dont have more subscribers. I've no idea about python but I want to make a super simple language learning game to learn German vocabularly. Your videos are giving me the crash course in exactly what I need to know. Thank you!!
@baraltech3 ай бұрын
Thank you so much, that means a lot!
@02pigoso4 ай бұрын
que tutorial buenardo, gracias mano
@baraltech3 ай бұрын
¡No hay problema!
@shauryagupta36445 ай бұрын
Hey man, great video! Btw, just a suggestion, instead of using "if pygame.key.get_pressed()[pygame.K_SPACE]", you can directly use "if event.key == pygame.K_SPACE" in the same spot, and it would work just the same.. (space was just an example, works with all keys) Just improves the readability (and maybe the performance, but not sure about that)
@iamfox82895 ай бұрын
How do you make your game start after pressing play though???????
@sanjeevmonica3 ай бұрын
Yes I also had the same question
@AndrasBalintBoroczky5 ай бұрын
I don't know which is better, but I don't have several functions for scenes but I use a "scene" string variable which I use in if statements so that the game doesn't render everything
@TFRKAI5 ай бұрын
When I used this it gave me an error saying lable name shouldn't be capital and it was talking about the start_button stop_button and exit_button part on def main menu But when I lowercased them it gave me another error saying lable shouldn't be lowercase, I'm very confused 😅 please help!
@harkmiguelcarandang7595 ай бұрын
The menu works but putting it with the game code works but the menu screens stays while the game is working properly it means 2 screens pop out
@maboo5755 ай бұрын
while i'm lost in the perfect strom, thee show me the light, the beacon of heaven, spawn from the black sea. You show mw that it's not a perfect strom, it's just a programming class. I shall give you my own heart and soul to you as a cost to this life saving hack as the strom approching me name'computor programming class' .But now, now, my dear, you save me. so thank you <3333
@baraltech3 ай бұрын
This really touched my heart!
@sherwinpaulsheltonedison8525 ай бұрын
Is there any way of programming it so that as the user enters it its hides it with asterisk?
@python_decoded5 ай бұрын
Nice foundation to scale application, have concearns related to calling_main_menu from play or from option, smells like recursion, where you go deeper and deeper, into stack though it can be easily fixed by return keyword
@sniperlord42435 ай бұрын
is there a way to change the colour of the rectangle box you type in
@RedEndGamers5 ай бұрын
I seriously like the way you give the warning for headphone users and your amazing man 😂😊😊 Love you just subscribed 🌟🫵🏻
@juliansolanobotina79835 ай бұрын
hey, i've got a problem, in the minute 10:49 when the ball must come back to the center after a point, i can't use ball.CENTER, it says "Cannot assign member "center" for type "Rect" "float" is incompatible with "int" "float" is incompatible with "int"
@aatmanshah3073Ай бұрын
its supposed to lowercase
@aatmanshah3073Ай бұрын
the center
@RobertoSantana615 ай бұрын
The 100 door analogy does not help at all, it's a totally different situation.
@mercury20533 ай бұрын
how does it differ?
@RobertoSantana613 ай бұрын
@@mercury2053 - More choices
@aylazer236 ай бұрын
Isn't it more efficient to draw lines for making the grid
@psy84286 ай бұрын
While this video provides interesting content, don't make your game this way. Each menu switch is added to the call stack. This keeps all of the function's context and variables in memory, leading to excessive memory consumption and potentially stack recursion limit (which is 1000 in python by default). It probably doesn't matter much for very simple games, but it's not a good programming pattern.