I am Japanese. There are not many people in Japan who are uploading videos on making games in python, so this video is very helpful. Thanks a lot for your clear and detailed explanations!
Thanks! Yes I had this problem as well, and when I looked into it online it seems to be one of the limitations of pygame. Normally in the game you would have more things on the screen so the background won't be as noticeable, but when it is the only thing on the screen it does look like it is a little jittery.
Thanks so much for your tutorials. They are helping me a lot. Can you please maybe teach how to do a main menu with two different backgrounds? For example 1 bg in menu with buttons play, credits and exit and when the credits button been clicked another bg appears with the button to back to main menu. It will help me a lot with my game to college 😁
Glad to hear the tutorials are helping. I have a tutorial in my shooter game which has a main menu. It has play and exit, so you will need to add the credits option yourself but the tutorial explains the logic for the menu so you will be able to figure out how to add more options: ua-cam.com/video/wWLDUb71mFo/v-deo.html
Hello quick question, if i need to do it for clouds for example like in stardew valley menu interface. Can i use only 1 image with 5-6 clouds and move it like in the video but ofcourse slowly. Ty for the video
Hi! Apparently I am trying to combine this endless scrolling with your parallax scrolling. However I can't seem to get it work properly, it fails to blit the background layer in on time and keeps glitching
is there a way or tut how to add ground on this scrolling bcgr that ground would scroll slower , or how to implement 2 or 3 different scrolling surface or assets?
Instead of scroll -= 5 you could do something like scroll -= scroll_speed. Then you can gradually increase the scroll_speed variable using a timer or a counter so your scrolling will be sped up
hi, thank you for you for this tutorial. I attempted to implement it for Y-axis scrolling, but it only functions in one direction (scrolling upwards). However, when I tried it for the opposite direction, it appears as if the image is being dragged (similar to what happens at the 9:13 mark in the video). Do you have any advice to offer that could assist me?
The problem is likely to be the same as what I demonstrated in the video. It's just happening on the vertical axis instead of horizontal. It sounds like the second image isn't coming in behind the first and you end up with this dragging effect. Check that you're passing the right coordinates for the second image to come in at the right location.
After writing entire code on VSCODE it is showing fault about bg = pygame.image.load(" BG.png").convert() Please Sir if possible solve my problem.....Thanks a lot.
It will scroll left as well but you have to adjust the code so the background images are drawn on the left otherwise you will get a smudging looking effect
BAD tutorial, now I perfectly understand why you have a few likes. IT says Beginner tutorial but then you just assume we already know what frames rates and clocks are and what they do. Really bad....
I am Japanese. There are not many people in Japan who are uploading videos on making games in python, so this video is very helpful. Thanks a lot for your clear and detailed explanations!
Thanks, glad to hear it is helpful
Good to see new content again. You do have some of the best python tutorials out here. Thanks!
Thanks! I'm glad you think so
Finally pygame content is back!🤣🤣
Bro you make one of the best pygame tutorials, please continue to do so in future.
Haha it was a long break :)
YES great to see your back i did all of the platformer
Thanks, glad to hear you finished it!
Wow! nice to see you back sir! Also Liked!!
Thanks!
Exceptional Tutorial as always. Thanks so much.
Thanks, glad you liked it!
Nice to see you again !!! i try to make smoothless the scroll downsizing the fps, but with no result ...
Thanks! Yes I had this problem as well, and when I looked into it online it seems to be one of the limitations of pygame. Normally in the game you would have more things on the screen so the background won't be as noticeable, but when it is the only thing on the screen it does look like it is a little jittery.
Thank you very much, I like it and this is the best tutorial i have
Thanks, glad you liked it
Thanks for the video helped me a lot!
No problem, glad you found it useful!
Thanks very useful I am searching how to do parallax now
I have a video on that too :)
Thanks so much for your tutorials. They are helping me a lot.
Can you please maybe teach how to do a main menu with two different backgrounds? For example 1 bg in menu with buttons play, credits and exit and when the credits button been clicked another bg appears with the button to back to main menu. It will help me a lot with my game to college 😁
Glad to hear the tutorials are helping.
I have a tutorial in my shooter game which has a main menu. It has play and exit, so you will need to add the credits option yourself but the tutorial explains the logic for the menu so you will be able to figure out how to add more options: ua-cam.com/video/wWLDUb71mFo/v-deo.html
This helped me a lot
I'll surely send you the Game I'm working one ❤️
Thanks, glad to hear it was helpful!
Thank you know I can tell my father how to create a scrolling background
nice to see you again are you okay tho? your voice seems different stay healthy :D
Yea I'm all good, thanks! I don't know why it sounded different...I must be out of practice :)
How do I make the background move with my player?
Thanks Russ! Thanks
You're welcome!
@@CodingWithRuss am learning so fast i need to slow down!
I from Polan
bro Zajebista Robota🙂
Next video, i hope you will do st about effect and shader
I know you can scroll the opposite way by scroll += but it doesn't load the new image near as smoothly on the left, any tips? Thanks
thanks from Algeria
Thanks so much, love the content.
I've figured how to do this vertically but would it be possible to do it in the opposite direction
how did you make it vertical?
How can you change the Y coordinate of each individual image so each one is at a different height
thank you so much!
You're welcome!
bro you are the best 😢 love from india can you me playlist on pythone 3d games ❤
Wow thanks alot for this awesome tutorial
You're welcome. glad it helped.
Hello quick question, if i need to do it for clouds for example like in stardew valley menu interface. Can i use only 1 image with 5-6 clouds and move it like in the video but ofcourse slowly. Ty for the video
Hello. Yes sure that would work as well and you could even have different clouds move at different speeds if you wanted to.
Thank you so much! However, I need to do this in C, is it possible?
Hi! Apparently I am trying to combine this endless scrolling with your parallax scrolling. However I can't seem to get it work properly, it fails to blit the background layer in on time and keeps glitching
Russ, can you make a tutorial on a background which follows the player?
look at the parallax background tutorial, that shows the background moving with controls of the user
Thanks
You're welcome
It worked
Good to hear
I am trying to make my program working but the -= operator isn't doing anything. How can I fix?
is there a way or tut how to add ground on this scrolling bcgr that ground would scroll slower , or how to implement 2 or 3 different scrolling surface or assets?
did you figure out a solution?
I lost my code all ness gonna start all over🎉thanks
or use modulus operator for the position
Understood complete
Glad to hear it
which programm do u use?
Sublime text
hello, how do you make the screen scroll gradually faster
Instead of scroll -= 5 you could do something like scroll -= scroll_speed. Then you can gradually increase the scroll_speed variable using a timer or a counter so your scrolling will be sped up
@@CodingWithRuss thank you!
how can i add words, bgm or other img on it? the bg still looping but the words and img on it are still
hi, thank you for you for this tutorial. I attempted to implement it for Y-axis scrolling, but it only functions in one direction (scrolling upwards). However, when I tried it for the opposite direction, it appears as if the image is being dragged (similar to what happens at the 9:13 mark in the video). Do you have any advice to offer that could assist me?
The problem is likely to be the same as what I demonstrated in the video. It's just happening on the vertical axis instead of horizontal. It sounds like the second image isn't coming in behind the first and you end up with this dragging effect. Check that you're passing the right coordinates for the second image to come in at the right location.
thanks for answer. it was just a " - " what I needed hahaha xD
@@yurabohm2561 Where? haha
Any chance this is doable with height as well as width?
Yea it can be applied vertically in the same way
What if i want to make it scroll vertically? Should I just swap width with height?
Yea pretty much. Same logic but on the y axis instead
@@CodingWithRuss perfect, thank you so much
@@Floffffff How did you do that?
After writing entire code on VSCODE it is showing fault about bg = pygame.image.load(" BG.png").convert()
Please Sir if possible solve my problem.....Thanks a lot.
What error do you get?
Is it possible to somehow impement it in def function ?
Yes, sure. You could put it into a function or even a class if you like.
good
thanks
@@CodingWithRuss hi man you've helped me a lot i didn't expect you to see my comment really thank you for your effort really appreciate your content
trying to do this to get it to scroll vertically but it jus scrolls horizontally...
To scroll vertically you would need to change it to move along the y axis instead of the x axis
Cool😂
Thanks!
sir sir pls tell me why the buttonmodule is not downloading using pip sir pls tell me sir i have less time pls pls sir a humble request from me
There's no button module
It is only scrolling perfectly towards right but not towards left 🤔
It will scroll left as well but you have to adjust the code so the background images are drawn on the left otherwise you will get a smudging looking effect
Hold that like
Your videos are great, could you leave your codes written here, hugs.
9:24
BAD tutorial, now I perfectly understand why you have a few likes. IT says Beginner tutorial but then you just assume we already know what frames rates and clocks are and what they do. Really bad....
that's basic knowledge of computers buddy. those arent necessarily coding terms.
if you only know the basics you are a beginner so if you dont know it you just nothing not even a beginner