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: ruclips.net/video/wWLDUb71mFo/видео.html
Small question: Line 12, You initiate a new instance of the class pygame with that instance named 'screen'. Within the same line of code you set the pygame attribute 'display.set_mode'. I follow this without any issues. The code I find peculiar is on line 13. The purpose of line 13 is obviously to set the attribute 'display.set_caption' in order to give the window an appropriate title text. I find this peculiar because intuitively I would like line 13 to be: 'screen.set_caption("Endless Scroll")' instead since the instance named 'screen' has already been created. Is there something specifically about the pygame.display class that only allows a single instance of it to be initiated at a time or something??? Normally shouldn't I be able to have as many copies of the code on line 12 as I like, just replacing 'screen' on each line with 'screen_1', 'screen_2', 'screen_N', etc. etc.?? If I were to do this, how would the code on the next line, "pygame.display.set_caption("Endless Scroll") be able to know which instance of pygame.display was being referenced? I hope my question is understandable and I hope someone has an answer even though this vid was uploaded 2 years ago!
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
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?
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.
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
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 :)
Great Thanks a lot !It was a very clear and easy tutorial for a beginner in pygame like me,Way to go !
Cheers!
Wow! nice to see you back sir! Also Liked!!
Thanks!
Exceptional Tutorial as always. Thanks so much.
Thanks, glad you liked it!
YES great to see your back i did all of the platformer
Thanks, glad to hear you finished 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!
Good video, thank you very much.
Glad you liked it!
This helped me a lot
I'll surely send you the Game I'm working one ❤️
Thanks, glad to hear it was helpful!
Thanks Russ! Thanks
You're welcome!
@@CodingWithRuss am learning so fast i need to slow down!
Next video, i hope you will do st about effect and shader
Thanks
You're welcome
thank you so much!
You're welcome!
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: ruclips.net/video/wWLDUb71mFo/видео.html
How do I make the background move with my player?
How can you change the Y coordinate of each individual image so each one is at a different height
Thank you know I can tell my father how to create a scrolling background
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
I from Polan
bro Zajebista Robota🙂
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 :)
bro you are the best 😢 love from india can you me playlist on pythone 3d games ❤
thanks from Algeria
Wow thanks alot for this awesome tutorial
You're welcome. glad it helped.
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?
Small question: Line 12, You initiate a new instance of the class pygame with that instance named 'screen'. Within the same line of code you set the pygame attribute 'display.set_mode'. I follow this without any issues. The code I find peculiar is on line 13. The purpose of line 13 is obviously to set the attribute 'display.set_caption' in order to give the window an appropriate title text. I find this peculiar because intuitively I would like line 13 to be: 'screen.set_caption("Endless Scroll")' instead since the instance named 'screen' has already been created. Is there something specifically about the pygame.display class that only allows a single instance of it to be initiated at a time or something???
Normally shouldn't I be able to have as many copies of the code on line 12 as I like, just replacing 'screen' on each line with 'screen_1', 'screen_2', 'screen_N', etc. etc.??
If I were to do this, how would the code on the next line, "pygame.display.set_caption("Endless Scroll") be able to know which instance of pygame.display was being referenced?
I hope my question is understandable and I hope someone has an answer even though this vid was uploaded 2 years ago!
which programm do u use?
Sublime text
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
where did you get the background from
Thank you so much! However, I need to do this in C, is it possible?
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!
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
Any chance this is doable with height as well as width?
Yea it can be applied vertically in the same way
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
Understood complete
Glad to hear it
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.
I am trying to make my program working but the -= operator isn't doing anything. How can I fix?
It worked
Good to hear
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
how can i add words, bgm or other img on it? the bg still looping but the words and img on it are still
or use modulus operator for the position
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.
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?
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
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?
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
9:24
Hold that like
Your videos are great, could you leave your codes written here, hugs.
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