how can i fix this error when i run the game after 30 seconds or so it crashes and says this: TypeError: invalid destination position for blit
@SM-ht7qf6 жыл бұрын
The first pygame side scroller tutorial on KZbin.
@louzynerd1294 жыл бұрын
how can i fix this error when i run the game after 30 seconds or so it crashes and says this: TypeError: invalid destination position for blit
@SM-ht7qf4 жыл бұрын
yousuf alshaikhli drive.google.com/drive/folders/15VWtoKZqIr-FjUbloZ-OjZojU03VFDJF I dont know but here is super mario world i made in pygame
@SpencerA995 жыл бұрын
Thank you for this! Very easy and simple tutorial to follow, even if you do not use the given source code. Much appreciated
@taufiqidr6 жыл бұрын
thank you, I think I'm gonna modify this game into chrome's dinosaur game
@adeoyeoladipupoibrahim30664 жыл бұрын
Exactly what I came here for
@hmrocky454 жыл бұрын
True
@lavinabhambra76116 жыл бұрын
Great video as always! Would love to see the starting file explained in more detail at the start
@tugdual46396 жыл бұрын
Thank you for those multiple tutorial, that help us a lot :)
@unisloth6 жыл бұрын
but is increasing the clock really the best solution to increase the speed of the background image and of the animations of the runner? I thought that by increasing the clock speed the fps cap increases too, and it would not really make much sense to run the game at 30fps in the beginning and at 120fps+ later, right? we should have a stable fps rate of like 60, not connected to the current speed of the game.
@GeeWillikersMan6 жыл бұрын
Mirror the first background about the y axis. That will smooth that transition.
@madMaxXXX9993 жыл бұрын
How do we blit a text that flashes/blinks in Pygame? BTW, love your tutorials Tim! Muchos gracias :)
@infogeekoficial3515 жыл бұрын
great video, helped me a lot
@gorgestboi10286 жыл бұрын
That is a really smart idea 👍
@TechWithTim6 жыл бұрын
Thanks! Hey I made some changes to the github, make sure you download the newest version :)
@gorgestboi10286 жыл бұрын
Tech With Tim I’ll be sure too!
@avvn93316 жыл бұрын
thanks for the starter file :), another great tutorial and thanks a ton for the tutorial
@roni52453 жыл бұрын
Tim, where do you get all these sprites? I want to make games with sprites of my own, but I don't know where to find them
@dre-o6j6 жыл бұрын
My screen speeds up once, and after that it stays the same speed. Any Help would be appreciated.
@louzynerd1294 жыл бұрын
AttributeError: 'builtin_function_or_method' object has no attribute 'get_width' when i run the program at 9:03 this occurs, what do i do?
@Paul-rd5zk5 жыл бұрын
can u please do a tutorial on how to set up just the scrolling background please
@alok74856 жыл бұрын
please provide basic understanding of various levels of Mario and AngryBird game ..how to make levels in game, How to increase the difficulty levels in python and pygame and how to perform motions and how to perform attack and swords and usage of riffles ,guns attacks and how to update health status and armour in PYthon
@TechWithTim6 жыл бұрын
Sounds like you need to go to a college program for game development my friend.
@alok74856 жыл бұрын
dear sir you explain in a very lucid manner and i adore you , i worship you ...you teach in the best possible manner..i request you to please update more pygame videos please i beg you
@tanishqchandra27195 жыл бұрын
@@TechWithTim No really!! even if you will hint how to do these, it would really be so much helpful regards
@thomasnicholson29895 жыл бұрын
my character is too slow how can i fix it?
@floydian255 жыл бұрын
Tim there seems to be a problem while loading the images. I followed your pygame tutorials but this is causing some problem. please help
@abdelrahmanrashwan13124 жыл бұрын
put them in a folder called images and it will work
@nirantarajade33794 жыл бұрын
Hey Tim, im having problems with the pictures its not working for some reason. It gives ana error saying cant open image
@louzynerd1294 жыл бұрын
how can i fix this error when i run the game after 30 seconds or so it crashes and says this: TypeError: invalid destination position for blit
@sgefanatic58245 жыл бұрын
how did you get all the different images
@ranianew76993 жыл бұрын
please! where can I get images for my game?
@sankethb.k6426 жыл бұрын
Thank you
@patentcomic19713 жыл бұрын
Hey so im a new coder i just started this new hobby about 2 months and never really started to do this out side of class but this looks really cool to start doing out on my free time is there any tips that you could possible give me
@ibr555 жыл бұрын
hey tim I got this error line 13, in bg = pygame.image.load(os.path.join('images','bg.png')).convert() pygame.error: Couldn't open images\bg.png I tried to fix it but I could not
@floydian255 жыл бұрын
Put all the images in the same directory/folder with your python file. Everything should be in the same folder or it won't work. If you're still confused see his pygame tutorial series. Hope this helps
@dhairyshrivastava9885 жыл бұрын
@@floydian25 well mine is in same directory
@RANKKY94 жыл бұрын
@@dhairyshrivastava988 You can't run the .py file from some editors like Atom. Use the comand prompt to run the .py file
@suzuuschannel46714 жыл бұрын
Brother I also tried but it won't work
@suzuuschannel46714 жыл бұрын
Please. Fix this issue tim
@MadaraUchiha-dw9jl4 жыл бұрын
Can anyone help me with setting up a background like mario I mean i need a side scrolling but dont want the char. Running in a single direction
@gabestewart28104 жыл бұрын
RojoPanda wow uhh you seem to be pretty knowledgeable when it comes to coding anyways could you help me with a problem .My problem is that it says bgX is not defined
@scoopydevy4 жыл бұрын
where do you get these sprites
@louzynerd1294 жыл бұрын
how can i fix this error when i run the game after 30 seconds or so it crashes and says this: TypeError: invalid destination position for blit
@sksahil43744 жыл бұрын
Is Python is good for game development ?
@chuckchen28514 жыл бұрын
Does anyone get this: "Unable to obtain graphics context for NSWindow (Mojave behavior)"?
@zacgreene82835 жыл бұрын
Help, I just get the error: ‘TypeError: unsupported operant type(s) for -=: ‘Pygame.Surface’ and ‘float’ regarding bgX -= 1.4 and bgX2 -= 1.4
@jumanshackelford49986 жыл бұрын
I have downloaded side_scrolls and press starter file and a screen pop up but it does not put me into a Python ildle file as I see you are in. There must be some wrong with me understanding the steps that u have demonstrated
@TechWithTim6 жыл бұрын
Just open IDLE then click open from the file menu and select the file.
@jumanshackelford49986 жыл бұрын
Tech With Tim I would like to thank you that made it so easy. My next question is what do I do with the other images that you sent me. I still do not fully understand the concept of putting them into the same directory file as Python. But I do appreciate your patience.
@jumanshackelford49986 жыл бұрын
I would like to thank you because I just figured out how to put my images into the same directory as my Python folder.
You can't run the .py file from some editors like Atom. Use the comand prompt to run the .py file
@ScroatyDontKnow4 жыл бұрын
Is anyone else getting a slightly jittery background every often? My background scrolls across the screen occasionally gets a weird rolling line go down it, kinda like a rolling shutter. Is there something I need to change or is it just my machine?
@sameerashajeem59792 жыл бұрын
It happened to me too I can't find a fix
@mdammar92654 жыл бұрын
instead of using 64 by 64 why dont you use pygame.image.get_width() and height respectively i mean that would reduce the unnecessary sixe especially if you more characters since they are sprites and the image and height although can be altered afterwards
@kemiscape5 жыл бұрын
How can i make the player's jump speed and slide speed into a stable vel? like it's not increasing the speed. :(
@marishwarannadar53236 жыл бұрын
USEREVENT not defined error occured help me
@sidharthnair77756 жыл бұрын
Me too. Help needed Tim!
@awsumturtle5 жыл бұрын
Did you include it in the While Run?
@tanishqchandra27195 жыл бұрын
I was getting the same problem ... have you imported all modules from pygame.locals ? as... from pygame.locals import *
@sairajsatawase74815 жыл бұрын
i got the error(ModuleNotFoundError: No module named 'pygame.color') how can i solve that/
@mohammedaashirjameel4 жыл бұрын
sairaj satawase I have the same problem
@mohammedaashirjameel4 жыл бұрын
sairaj satawase did you manage to fix it?
@dhairyshrivastava9885 жыл бұрын
It shows no errors and yet the screen is blank
@yamom...59185 жыл бұрын
I couldn’t get it to work
@trishmorrison25295 жыл бұрын
Me either I couldn't figure how to put the image on to python once I downloaded the zip.
@yamom...59185 жыл бұрын
☺☺☺☺☺☺☺☺☺
@tanishqchandra27195 жыл бұрын
hey Tim, whats up! can u help me find some free sprites for my own game by suggesting any website or source? Thank you for your great videos that help me so much to learn python...
@amanihussain57894 жыл бұрын
Guys this sounds really stupid but can someone explain how the pygame and sprites should be saved as bc its not working for me :(((((
@charliefelix93265 жыл бұрын
Which version of python are you using? Thanks! And where could I find other characters?
@pythonicperson72164 жыл бұрын
he is using python 3.6.2, and to find other characters probably go to a sprite sheet or something.