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 Жыл бұрын
I recognize that voice your the guy who did a tutorial on replit right
@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 Жыл бұрын
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 Жыл бұрын
Thank you for this video I had trouble understanding what masks are by just reading through the docs!
@philtoa334 Жыл бұрын
Beautiful.
@JanKowalski-pc8yr2 жыл бұрын
thank you so much
@matheuscosta49082 жыл бұрын
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
@watamote86942 жыл бұрын
Zoom in
@prizegotti2 жыл бұрын
How would one change the speed?
@marcovalentinoalvarado32902 жыл бұрын
This is EXACTLY what I was looking for, I needed this for my RPG w/ Top- Down view lol
@bloomp79992 жыл бұрын
the drive ask for authorization
@Tomcamtec2 жыл бұрын
Can this be used for continual object movement without mouse click, with a few changes , great tutorials, new subscriber
@Ubivashkaify2 жыл бұрын
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.
@parkuuu2 жыл бұрын
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.
@justwanttocommentandseethe9362 жыл бұрын
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.
@BigAggLP2 жыл бұрын
nice and straight forward tutorials, great videos!
@Wallee5802 жыл бұрын
Thanks! I use a very underpowered computer and always love to improve performance in my code. :D
@StarFury22 жыл бұрын
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_dark2 жыл бұрын
how come when I did import sys it didn't work
@MahmudShuaib2 жыл бұрын
will 500 fps affect the performance on the game?
@itstagh19022 жыл бұрын
replaced the circle with an image and it broke everything
@sxmourai68972 жыл бұрын
I can't open onedrive
@CarsonPerrons2 жыл бұрын
I didn't expect to have to learn trigonometry this much to use pygame ;-;. Thank you so much this video helped a lot.
@subhazard42972 жыл бұрын
Hey, thanks for making this. You showed me practically how I can use vectors for movement
@errubi64602 жыл бұрын
well explained
@samuelbarton49912 жыл бұрын
I'm tying to do this but with a sprite, using sprite.rect. I'm not sure of how to implement this using classes.
@animationsbelike2 жыл бұрын
Nice Video :) xD
@animationsbelike2 жыл бұрын
Wow, nice Video :)
@animationsbelike2 жыл бұрын
Wow, thannk you for this Great Tutroial! This helped me a lot :)
@Divijcool3 жыл бұрын
your word code.Pylet yay 10points
@janrutgerkuiper16453 жыл бұрын
Thanks
@bhangrafan44803 жыл бұрын
I like it!
@mariagabrielamendes82133 жыл бұрын
Hi every one, can somebody help me? I need to make my player jump using the same code of the video.
@alfredopozos983 жыл бұрын
hola, un gran saludo desde méxico, me ayudaste demasiado con este vídeo, eres bueno explicando :D
@lfigure17183 жыл бұрын
Very simple, very efficient. Thank you.
@thehappypeople74953 жыл бұрын
thanks you i finally found a way to actually make a player in my game
@mickolesmana58993 жыл бұрын
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_Vengence3 жыл бұрын
thanks :)
@daniellewis68323 жыл бұрын
How to stop the bg from moving if it reaches the end of the image ...
@aleksandrapacia21133 жыл бұрын
This tutorial is great! It helped me a lot, thanks!
@jmmatas083 жыл бұрын
Thank you, very well expained !!!
@Knuddelfell3 жыл бұрын
Is it still like this?
@3DPrintedEngineer3 жыл бұрын
THIS is the most used word in this video
@lajosvarga65443 жыл бұрын
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)
@alexisautube3 жыл бұрын
Your tutorials are as good as they come. Please consider coming back with more tutorials!