Пікірлер
@BobChess
@BobChess 8 ай бұрын
Wow, It improves my game like a lot. Cool
@taripreteiz.segu-baghabo2876
@taripreteiz.segu-baghabo2876 Жыл бұрын
Thanks much, I learned something new. Can you make video on limited spaces between two objects created at random so they don't overlap
@MowiWowi
@MowiWowi Жыл бұрын
I recognize that voice your the guy who did a tutorial on replit right
@nalstudio_official
@nalstudio_official Жыл бұрын
You could calculate the direction as follows: dx = (mx - pmx) / distance dy = (my - pmy) / distance This should give you the exact same result (the components of a normalized direction vector) or possibly be even more accurate as the value is calculated with less layers of float prosessing and the errors associated with it. I would calculate the direction this way as it would save you an arc tangent (atan2), a cosine and a sine calculation which are very costly to calculate. While performance really isn't a big deal as Python itself is so slow that optimization is basically useless, I still wanted to point it out as I thought it might interest someone. Of course I won't go into a deepdive how this is derived since nobody probably cares, but it's just basic trigonometry which I found interesting to make a comment about.
@coucoul38
@coucoul38 Жыл бұрын
Very good tutorial, but I would suggest naming the variable something more easy to understand, because it's quite easy to mistake one for another when they're named x, y pmx, pmy dx, dy znd mx, my
@mangaart3366
@mangaart3366 Жыл бұрын
Thank you for this video I had trouble understanding what masks are by just reading through the docs!
@philtoa334
@philtoa334 Жыл бұрын
Beautiful.
@JanKowalski-pc8yr
@JanKowalski-pc8yr 2 жыл бұрын
thank you so much
@matheuscosta4908
@matheuscosta4908 2 жыл бұрын
Great video!!! From this point how would you add collisions.... because I try to add with a simple colliderect but it works partially, whenever i run off the platform my guy doesnt fall, I would have to jump again for it to fall to the ground
@watamote8694
@watamote8694 2 жыл бұрын
Zoom in
@prizegotti
@prizegotti 2 жыл бұрын
How would one change the speed?
@marcovalentinoalvarado3290
@marcovalentinoalvarado3290 2 жыл бұрын
This is EXACTLY what I was looking for, I needed this for my RPG w/ Top- Down view lol
@bloomp7999
@bloomp7999 2 жыл бұрын
the drive ask for authorization
@Tomcamtec
@Tomcamtec 2 жыл бұрын
Can this be used for continual object movement without mouse click, with a few changes , great tutorials, new subscriber
@Ubivashkaify
@Ubivashkaify 2 жыл бұрын
Thanks. I'm going to write a student paper and develop a game for it, so your video was very useful to me, because I'm still new to python.
@parkuuu
@parkuuu 2 жыл бұрын
Hello, can someone please explan why : -1 mod rectwidth == rectwidth - x? I always thought that it would be -1, but can't see any examples on the internet that has a smaller negative dividend.
@justwanttocommentandseethe936
@justwanttocommentandseethe936 2 жыл бұрын
Thanks for the video! I just heard that I should convert, but they didn’t explain why, so I watched this video and now I think I understand.
@BigAggLP
@BigAggLP 2 жыл бұрын
nice and straight forward tutorials, great videos!
@Wallee580
@Wallee580 2 жыл бұрын
Thanks! I use a very underpowered computer and always love to improve performance in my code. :D
@StarFury2
@StarFury2 2 жыл бұрын
His tutorials are absolutely fantastic! I noticed I'm learning way more in same amount of time compared to watching a popular channels nowadays. Shame he stopped making videos years ago. Python popularity just exploded in last few years.
@Light_of_the_dark
@Light_of_the_dark 2 жыл бұрын
how come when I did import sys it didn't work
@MahmudShuaib
@MahmudShuaib 2 жыл бұрын
will 500 fps affect the performance on the game?
@itstagh1902
@itstagh1902 2 жыл бұрын
replaced the circle with an image and it broke everything
@sxmourai6897
@sxmourai6897 2 жыл бұрын
I can't open onedrive
@CarsonPerrons
@CarsonPerrons 2 жыл бұрын
I didn't expect to have to learn trigonometry this much to use pygame ;-;. Thank you so much this video helped a lot.
@subhazard4297
@subhazard4297 2 жыл бұрын
Hey, thanks for making this. You showed me practically how I can use vectors for movement
@errubi6460
@errubi6460 2 жыл бұрын
well explained
@samuelbarton4991
@samuelbarton4991 2 жыл бұрын
I'm tying to do this but with a sprite, using sprite.rect. I'm not sure of how to implement this using classes.
@animationsbelike
@animationsbelike 2 жыл бұрын
Nice Video :) xD
@animationsbelike
@animationsbelike 2 жыл бұрын
Wow, nice Video :)
@animationsbelike
@animationsbelike 2 жыл бұрын
Wow, thannk you for this Great Tutroial! This helped me a lot :)
@Divijcool
@Divijcool 3 жыл бұрын
your word code.Pylet yay 10points
@janrutgerkuiper1645
@janrutgerkuiper1645 3 жыл бұрын
Thanks
@bhangrafan4480
@bhangrafan4480 3 жыл бұрын
I like it!
@mariagabrielamendes8213
@mariagabrielamendes8213 3 жыл бұрын
Hi every one, can somebody help me? I need to make my player jump using the same code of the video.
@alfredopozos98
@alfredopozos98 3 жыл бұрын
hola, un gran saludo desde méxico, me ayudaste demasiado con este vídeo, eres bueno explicando :D
@lfigure1718
@lfigure1718 3 жыл бұрын
Very simple, very efficient. Thank you.
@thehappypeople7495
@thehappypeople7495 3 жыл бұрын
thanks you i finally found a way to actually make a player in my game
@mickolesmana5899
@mickolesmana5899 3 жыл бұрын
Thank god, I finally found my exact solution to my problem. I try to make an RTS game and there is a huge ton of problems with mouse control such as Queueing next move such as Shift+Command. Debounce button effect. And finally you create a video that solve my problem, thank so much :)
@i_am_Vengence
@i_am_Vengence 3 жыл бұрын
thanks :)
@daniellewis6832
@daniellewis6832 3 жыл бұрын
How to stop the bg from moving if it reaches the end of the image ...
@aleksandrapacia2113
@aleksandrapacia2113 3 жыл бұрын
This tutorial is great! It helped me a lot, thanks!
@jmmatas08
@jmmatas08 3 жыл бұрын
Thank you, very well expained !!!
@Knuddelfell
@Knuddelfell 3 жыл бұрын
Is it still like this?
@3DPrintedEngineer
@3DPrintedEngineer 3 жыл бұрын
THIS is the most used word in this video
@lajosvarga6544
@lajosvarga6544 3 жыл бұрын
This is not good for me (index % cols * w, index / cols * h, w, h) just like this (index % cols * w, int(index / cols) * h, w, h)
@alexisautube
@alexisautube 3 жыл бұрын
Your tutorials are as good as they come. Please consider coming back with more tutorials!
@OmarRamirez-ed1bw
@OmarRamirez-ed1bw 3 жыл бұрын
sadly this is the last video of the channel
@adammickiewicz7818
@adammickiewicz7818 3 жыл бұрын
This video was very helpful, thanks a lot!
@divineporportions1653
@divineporportions1653 3 жыл бұрын
M O N O S P A C E