Wow you put so much effort in doing examples and stuff like that you deserved lot more subs. Really good Video.
@Rage2gether7 жыл бұрын
Hi I am from Vienna thank you for making these videos I just found your channel :)
@codePylet7 жыл бұрын
+FuLongable Italy! I love Italy, we went there for our honeymoon. We went to Sienna numerous times, it really is a gorgeous little city! Thank you for your kind words by the way 😁
@Rage2gether7 жыл бұрын
:)
@notapewdiepiebot38195 жыл бұрын
How would you add objects that can be interacted with when you reach certain points of the background?
@that_awesome_maker7 жыл бұрын
Great Videos man! keep making videos like these
@highgr67446 жыл бұрын
how do i replace the circle with my sprite
@hornypoet4 жыл бұрын
as normal delete the draw function and other circle functions and replace them with the player IMG function and and the where you want it to be (x, y) simple ;)
@riyamandal76672 жыл бұрын
Just blit it properly using screen.blit()
@jordivanveen75204 жыл бұрын
Nice guide, I was wondering something. What does the ':' do in for example this line of code: "if playerPosX > stageWidth - circleRadius: playerPosX = stageWidth - circleRadius". I've never seen that operator before.
@doviledasilvamonteiro84394 жыл бұрын
it is not an operator. its just two lines attached in one. normally one would write: if playerPosX > stageWidth - circleRadius: playerPosX = stageWidth - circleRadius
@Light_of_the_dark2 жыл бұрын
how come when I did import sys it didn't work
@kanybol18454 жыл бұрын
I know you might not see this but how would you do this with sprites
@hippy66696 жыл бұрын
Hi there, really good tutorial. Exactly what I was looking for.
@luis456ish5 жыл бұрын
Can someone help me please I do not know how to speak English very well so I do not understand very well some parts (I'm using google translator) my doubt is: in the video it is taught as the side scolling using movement on the x axis how would I make for the ball or the sprite to be to axis Y move up and down the screen?
@MrMa-og5hk7 жыл бұрын
I can not find the image file, moutains.png. can u pls let me know where can I download? thanks
@raz86577 жыл бұрын
u can get the moutains.png in the 2 link of code pylet after clicking the link.u will found seamless click it download the image.
@DeerhunterCZ7 жыл бұрын
As always a great video, thanks! And I am from Wellington, Somerset :)
@codePylet7 жыл бұрын
+DeerhunterCZ I don't why but I always want to say Somerset in a farmer's voice!? I've never been to Somerset but for some reason I feel it has been cut off from mainstream English weather and has it's own Mediterranean climate instead. Going to Devon in August camping and that always reminds me of custard and rice pudding :O
@joshuabaker28334 жыл бұрын
@@codePylet nice to hear you like camping ever beem to Glastonbury Tor
@tylermartin44815 жыл бұрын
Hey, I'm creating my major project at the present moment, I've followed the tutorial and used the document provided and I'm receiving an issue the drawing of the circle. The error states "integer argument expected, got float". you changed it to circlePosX from playerPosX. PlayerPosX works but circlePosX gets halfway across the screen and then encounters an error
@RummanNaser5 жыл бұрын
The same thing happens to me
@eraghubi4 жыл бұрын
me too
@hehehaha36767 жыл бұрын
Hey. I really enjoyed your coding challange video. Can you pls make more?
@codePylet7 жыл бұрын
+Hány Inger Hi Hány, yes of course! Im working on a new video now but busy with life too so might be awhile. In the mean time if you need help just ask :)
@hehehaha36767 жыл бұрын
Thx :D
@warzenschwein10574 жыл бұрын
thx for this video I looked for something this but every other video I found didn't work so thank you
@genericnpc29795 жыл бұрын
How would i replace the Circle with an image out of one of my classes? (especially in terms of the variables)
@shakedbukai80795 жыл бұрын
i have this problem as well...
@genericnpc29795 жыл бұрын
@@shakedbukai8079 I ended up doing it differently with the code found here programarcadegames.com/python_examples/f.php?file=platform_scroller.py
@raz86577 жыл бұрын
i can not see my circle
@AlvaroMartinez986 жыл бұрын
Everything works just fine, but my image isn't scaled correctly.. I cant see the floor of the image, it seems to be too large and the ground doesn't come up to the screen, any idea how to fix this?
@AlvaroMartinez986 жыл бұрын
Update: I used resizeimage.net to resize the image (resize, not crop) to my display size... Looks just fine now
@MahmudShuaib2 жыл бұрын
will 500 fps affect the performance on the game?
@fabianconcha19944 жыл бұрын
Hey man, can you help me? I'm programming a videogame to my final proyect and I wanna know how can I replace the circle with a image?
@zairhyxezhyckatienza47894 жыл бұрын
Yep, you can with what you call "Sprites".
@alansimic24337 жыл бұрын
when i pass the third tree, the game freezes and it says: pygame.draw.circle(DS, WHITE, (circlePosX, playerPosY - circleRadius), circleRadius,0) TypeError: integer argument expected, got float Ive read your code and rewatched the video 20 times but dont know what went wrong.
@shrekthetroll78267 жыл бұрын
change what's in the brackets to (int(circlePosX),playerPosY - circleRadius), circleRadius,0)
@alansimic24337 жыл бұрын
already tried but then the background scrolls the other way
@codePylet7 жыл бұрын
Which version of pygame are you using?
@onefilm27097 жыл бұрын
thanks man you did help me :)
@alansimic24337 жыл бұрын
1.9.3
@uppedkestrel06725 жыл бұрын
I can't get the code to work when I have circlePosX in the pygame.draw.circle(DS, WHITE, (circlePosX, playerPosY - 25), circleRadius, 0) If I used playerPosX on the other hand, it scrolls when the player gets to the centre, but the player moves faster than the background scrolling. Any advice? The error I get is: "pygame.draw.circle(DS, WHITE, (circlePosX, playerPosY - 25), circleRadius, 0) TypeError: integer argument expected, got float"
@RummanNaser5 жыл бұрын
This happened to me as well, did you fix it?
@naramsettysaisantosh48136 жыл бұрын
Hey there are no images in your Google drive
@raz86577 жыл бұрын
can u say how to install pygame plase
@pythondeveloper63155 жыл бұрын
In cmd: pip install pygame
@mariagabrielamendes82133 жыл бұрын
Hi every one, can somebody help me? I need to make my player jump using the same code of the video.
@LogicQuest-u3e5 жыл бұрын
Okay I can't just load image by typing "mountains.png". Where do I suppose to place png file?
@RummanNaser5 жыл бұрын
The same folder as the python file I believe
@maniksingh66804 жыл бұрын
LightningKhrizz same folder as the python file or just type the whole path ( r”C:/ ...”)
@andrewschroeder54857 жыл бұрын
Hey! Great tutorial. But why does it freeze if the events() (line 40) line is not included? When I get rid of it it doesn't work :p
@codePylet7 жыл бұрын
+Andrew Schroeder Good question. It's because pygame needs to communicate with the platform's window system. If you don't want to include the events() function then you don't have to buy you must include pygame.event.pump() instead to stop your program from crashing. Pump() and reading the event queue (I'm guessing) stops the program entering an infinite loops when an event occurs like pressing the X to close the window.
@Guimel69015 жыл бұрын
What means HW variable?
@codePylet4 жыл бұрын
HALF WIDTH
@vasnot6 жыл бұрын
how do you get the smooth movement?
@codePylet6 жыл бұрын
Try increase the frame rate or use smaller graphics. :)
@itstagh19022 жыл бұрын
replaced the circle with an image and it broke everything
@superideias41464 жыл бұрын
I need to know how to use pygame in notepad ++ HELLPPP PLS ;-;
@ganeshreddy32115 жыл бұрын
thank you sir
@vetherhax5466 жыл бұрын
Thank you for turourial =)
@tcgvsocg14583 жыл бұрын
Continue
@naramsettysaisantosh48136 жыл бұрын
Plz respond fast
@codePylet7 жыл бұрын
Where do you come from? I'm from a village in England called Binbrook goo.gl/g7RcDu
@huero1177 жыл бұрын
code.Pylet hello!! i'm from san luis potosi mexico goo.gl/maps/V9qq4dsfSfF2
@codePylet7 жыл бұрын
+rafael gonzalez A city slicker huh!? Please to meet you Rafael
@huero1177 жыл бұрын
excuse me, what is a city slicker??
@codePylet7 жыл бұрын
+rafael gonzalez A city slicker is someone who lives in a city environment and doesn't understand what it is like to live else where :0. I prefer village life, too many people in cities. A city reminds me of a giant termites nest lol please don't be insulted, I'm just joking.
@huero1177 жыл бұрын
jajaja, don't worry, in fact, San Luis is not a big city... we have only the Centro to walk and some squares, (we call Centro the center of the city). Let me guess, Are you an external developer? or, are you from there?