Greetings, I have read most of the comments and they were wonderful, I respectfully please you use some other values because not everyone has the same screen as yours. This is still amazing, thank you!
I have a confusion when you are decrementing the value of *x-coordinate* of *Ground floor,* then why only hashes moving to left? Why not the entire image?
its bc it doesn't delete the previous blits of the ground image it only just places the new blit on top so it basically is showing u the last 4 pixels on the right hand side repeated which kinda make it look like only the slanted line/ hashes move to the left
i cant even use it because when i run it, it fills up the whole screen and i cant even interact with tbhe top bar (the windows bar) so i would have to use a different smaller resolution, but then the sprites wont work, so i'd have to somehow resize the sprites, which wont work either because it will mix the colors and just look f*cking sh*tty
Hello! 5:08 Please i putted the same name same everything for the image and its saying when i run it : ( bg = pygame.image.load('img/bg.png') FileNotFoundError: No such file or directory.) i even checked the name type though **ITS saved in downloads and i put it as bg ground and like that *** i went to properties and even checked :/ In pycharm :(, Help thanks
This is my first time using PyGame, and I am having trouble with the second line of code in this tutorial. Whenever I type the star at the end of this line it greys out the line of code?
Try running the source code from the github repo (linked in video description) and see if the same issue happens there. If it works fine then you can compare the code with yours and see if anything stands out.
In my line 10 [pygame.dispay.set_caption('Flappy Bird')], i am getting error like such, AttributeError: module 'pygame' has no attribute 'dispay'. Any help?
@@CodingWithRuss Oh I have not realized, I was going to quit until I saw this 😅. Thank you!(you earend a sub by being a productive creator and interacting with your comments)
Just create a folder in the same directory as the file of the game and if you are trying to load the images, write pygame.image.load("FILENAMEINSAMEDIRECTORY/IMAGE").
@@Sunrit_Mullick Thank you! This worked for me. It cut off the bottom of the screen still but that doesn't matter since it is a black bar (unless it has value later on?).
Really enjoying this tutorial so far, but my second background only scrolls when my mouse is hovering over the screen. I have checked my code and made sure that it's the same as yours. Any solution for this? (Using Python 3 with Windows 10)
Sounds like you've got something wrong in the code somewhere. Compare it with the source code in the video description and you should be able to find the problem.
@@CodingWithRuss I compared, but the code is the same. Do you think its a bug? When I runned it today I saw the ground then the picture just shot up to the sky and its just blue
Hi Just starting this one can you tell me where you put the img folder on the pc as it says no file to run I put it on my desktop. so its desktop>img>bg thanks
Sounds like you've got a typo in the code somewhere. Compare it with the source code in the video description and you should be able to find the problem.
where do we have to put the images file, Traceback (most recent call last): File "C:\Users\abhin\Desktop\everything\Python ot working python codes\beta python codes\FlappyBird\main.py", line 21, in bg = pygame.image.load('img/bg.png') FileNotFoundError: No such file or directory.
Hi folks, Code for this video: github.com/russs123/flappy_bird/blob/main/Part_1-Scrolling_Background/flappy_bird_tut1.py And you can download the images here: github.com/russs123/flappy_bird/tree/main/img
@@CodingWithRuss For some reason after the second line after "import pygame.locals" where it says "import *", it keep on saying "invalid syntax, and the i of the import is highlighted. Do you have any idea on how to fix this issue?
can't download any of these files in description.the game is good but i do not know where to get photos.can't you do anything properly.i used to be a subscriber,and now i am unsubscribing
Mf you don’t need the exact photos for the game. Make it your own, just follow his code 🤷♂️. It’s kinda sad that you’d make a comment like this to highlight your own inadequacies. I literally started learning code two days ago and I could understand almost everything in this video, there’s no way you couldn’t do some googling to help yourself 🤦♂️
my bg image script and my ground script won work heres the error message: bg = pygame.image.load('img/bg.png') FileNotFoundError: No file 'img/bg.png' found in working directory 'C:\Users\biswa\PycharmProjects\pythonProject9'.
I absolutly love your pygame video and your series are so good, I am probably going to watch them all
It's a pleasure to learn with you.
Thank you! :)
You just earned a new subscriber!
Nice! :)
Greetings,
I have read most of the comments and they were wonderful, I respectfully please you use some other values because not everyone has the same screen as yours. This is still amazing, thank you!
Cheers a lot mate for this Flappy Bird game using Pygame.
Thanks! :)
your video really helped me, I love them.
Thanks!
you are welcome
Hey There! Thank you so much for this video series. It helped me for my school work! Keep it up!!!
Best tutorial ever
Thanks :)
your video is so cool and interesting, like the way you teach lol
Thank you! 😃
Hi, great video, I come from reddit
Hey, thanks! 😀
why is the ground photo in this video long while blit() just draws its position somewhere else??
thanks for coding this game you top shelve
I have a confusion when you are decrementing the value of *x-coordinate* of *Ground floor,* then why only hashes moving to left? Why not the entire image?
its bc it doesn't delete the previous blits of the ground image it only just places the new blit on top so it basically is showing u the last 4 pixels on the right hand side repeated which kinda make it look like only the slanted line/ hashes move to the left
@@anshdesai2131 Wait let me give you the timestamp.
@@anshdesai21318:06
i am using Mac and it says that no found 'pygame'
Please tell me what to do?
I just subscribed!
Cheers!
great game love your videos
Thanks :)
Thx man, God bless you
thankyou dude love you so much
Glad you liked it!
@@CodingWithRuss I am using this for my school project
i cant even use it because when i run it, it fills up the whole screen and i cant even interact with tbhe top bar (the windows bar)
so i would have to use a different smaller resolution, but then the sprites wont work, so i'd have to somehow resize the sprites, which wont work either because it will mix the colors and just look f*cking sh*tty
go into windows settings > system > display > decrease scale %
Hello!
5:08 Please i putted the same name same everything for the image and its saying when i run it :
( bg = pygame.image.load('img/bg.png')
FileNotFoundError: No such file or directory.)
i even checked the name type though
**ITS saved in downloads and i put it as bg ground and like that ***
i went to properties and even checked :/
In pycharm :(, Help thanks
Help 💜
@@YaGirlTech but do you have a folder named img that stores all the images?
This is my first time using PyGame, and I am having trouble with the second line of code in this tutorial. Whenever I type the star at the end of this line it greys out the line of code?
Sound like the editor you're using is doing that. Try sublime text editor instead
even when it greys out it still works i tried it
im such a good programer. Cant even yoink code to make a program work
only shows images for a split second when closing the program. Code indentation seems to be fine, any suggestions?
Try running the source code from the github repo (linked in video description) and see if the same issue happens there. If it works fine then you can compare the code with yours and see if anything stands out.
@@CodingWithRuss Turns out I did overlook the indentation at pygame.display.update(). Thanks a lot for that suggestion!
In my line 10 [pygame.dispay.set_caption('Flappy Bird')], i am getting error like such, AttributeError: module 'pygame' has no attribute 'dispay'. Any help?
Did you figure it out? You have a typo - you've put "dispay" instead of "display"
@@CodingWithRuss Oh I have not realized, I was going to quit until I saw this 😅. Thank you!(you earend a sub by being a productive creator and interacting with your comments)
i want to ask something.. which folder did you save the images?..
Just create a folder in the same directory as the file of the game and if you are trying to load the images, write pygame.image.load("FILENAMEINSAMEDIRECTORY/IMAGE").
Hi, We can create assets folder and put the images in it. Or we can put the images in the program folder itself, which contains the program data.
thanks for all
You're welcome
If i run in 864 × 936, it is covering most of the sscreen unlike yours and i cannot find the cdoss button. Can you suggest me some other values
import ctypes
def set_window_position(window_title, x, y):
hwnd = ctypes.windll.user32.FindWindowW(None, window_title)
if hwnd != 0:
ctypes.windll.user32.SetWindowPos(hwnd, 0, x, y, 0, 0, 1)
# Call this function after creating the Pygame window
set_window_position('Flappy Bird', 100, 100)
hopefully this works!
@@Sunrit_Mullick Thank you! This worked for me. It cut off the bottom of the screen still but that doesn't matter since it is a black bar (unless it has value later on?).
@@JuiceTeaBeans you will add a scrolling ground animation later on
Can you make video on how to add levels in it please
cant download ant image from your github resource please help
When I code it does not show me image and says no available video device pls help😢
I haven't seen that error in pygame before! Are you having this error with other pygame projects too? This may be specific to your installation
Really enjoying this tutorial so far, but my second background only scrolls when my mouse is hovering over the screen. I have checked my code and made sure that it's the same as yours. Any solution for this? (Using Python 3 with Windows 10)
Same issue have you got the solution ?
it says FileNotFoundError: No file 'img/bg.png' found in working directory
put the file in the same directory as the project
@@slendii366 ok thx for replying 👍
@@slendii366saved me as well. But for some reason the image isn’t loading at all. I’m getting no error either. Just a black background….
Same
Hi, I have a problem. I have the ground and bg in img folder but whenever I press play, it just makes a light blue screen? How can I fix it?
Sounds like you've got something wrong in the code somewhere. Compare it with the source code in the video description and you should be able to find the problem.
@@CodingWithRuss I compared, but the code is the same. Do you think its a bug? When I runned it today I saw the ground then the picture just shot up to the sky and its just blue
ModuleNotFoundError: No module named 'pygame' what is this line 1
Hi can anyone help my images aren’t loading and and my quit button isn’t working I’ve checked my code and I can’t see anything wrong
Have you download your images
@@bruhmemenaruto6799 yes
when i tried to run it, it said "IndentationError: expected an indented block after 'while' statement on line 18"
Add an indent to line 18 using tab
From where to download the images and what measurements of image have to take?
Check the link in the description for all the assets you need for this game
@@CodingWithRuss probably pin the comment so its easy to find
Hello i have error (line 21, in
bg = pygame.image.load('img/bg.png')
FileNotFoundError: No such file or directory.)
Please help me thank you
but i have bg.png and ground.png
Did you put the images into a folder called "img"?
@@CodingWithRuss how do we do that?
@@CodingWithRuss I've done this and also named the file "bg.png" but it still gives me the same error. is there anything else I can do to fix it??
Hi
Just starting this one can you tell me where you put the img folder on the pc as it says no file to run I put it on my desktop. so its desktop>img>bg thanks
Sorry ignore this sorted now thanks
Good stuff, glad you got it sorted!
my ground picture is disappearing after scrolling but yours stand still why
Sounds like you've got a typo in the code somewhere. Compare it with the source code in the video description and you should be able to find the problem.
where do we have to put the images file,
Traceback (most recent call last):
File "C:\Users\abhin\Desktop\everything\Python
ot working python codes\beta python codes\FlappyBird\main.py", line 21, in
bg = pygame.image.load('img/bg.png')
FileNotFoundError: No such file or directory.
Put them in a sub folder called "img" so the code can find them
Hi folks,
Code for this video: github.com/russs123/flappy_bird/blob/main/Part_1-Scrolling_Background/flappy_bird_tut1.py
And you can download the images here: github.com/russs123/flappy_bird/tree/main/img
WHY THE ONLY GREEN PART OF GROUND IMAGE IS MOVING INSTEAD OF THE WHOLE PICTURE
NEVERMIND SIR
Why caps
The image is so much large on. My scree
for some reason the ground image wont load even if i just copy the code.. maybe it's my software
You have it in the wrong location
in 3:06 my game is not opening, someone explain to me how to fix that or is it normal?
keep on going through tutorial depending on the version of pygame or python you have the code might not work until you have the next part
What terminal are you using for your code?
Sublime text editor
Which editor you using?
Sublime text editor
Which software are you using ?.
It's sublime text editor
what code editor do you use?
Sublime text
@@CodingWithRuss For some reason after the second line after "import pygame.locals" where it says "import *", it keep on saying "invalid syntax, and the i of the import is highlighted. Do you have any idea on how to fix this issue?
you copied code with harry right
where are the assets???
Should be linked in the video description. Let me know if you can't download them
Respected Sir-coding on Vscode… but can’t solve the problem (flappy = Bird(100, int(100, screen_height / 2))
^^^^^^^^^^^^^^^^^^^^^^^^^^^). Thank you..
Hello, what error do you get?
@@CodingWithRuss Respected Sir happy to say…that’s my mistake..now solved…thanks
@@ushabothra7912 Good job!
can't download any of these files in description.the game is good but i do not know where to get photos.can't you do anything properly.i used to be a subscriber,and now i am unsubscribing
Mf you don’t need the exact photos for the game. Make it your own, just follow his code 🤷♂️. It’s kinda sad that you’d make a comment like this to highlight your own inadequacies. I literally started learning code two days ago and I could understand almost everything in this video, there’s no way you couldn’t do some googling to help yourself 🤦♂️
@@Oogaboogabooboo😂😂 chill on bro 🤣 ctfu you right tho. Did you ever make the game ?
my bg image script and my ground script won work heres the error message: bg = pygame.image.load('img/bg.png')
FileNotFoundError: No file 'img/bg.png' found in working directory 'C:\Users\biswa\PycharmProjects\pythonProject9'.
It means it can't find the file in that folder. Do you have the images in that location in subfolder "img"