Collisions in Pygame!
Вставка
- Опубліковано 5 жов 2024
- How collisions in Pygame work!
◾◾◾◾◾ Related Content ◾◾◾◾◾
🖺 PyCharm & Python Installation: • JavaScript: Install No...
⭐ Python Basics: • Python Basics
🕹️ Pygame Tutorials: • Pygame Tutorials
◾◾◾◾◾ 🌎 Let's Connect! ◾◾◾◾◾
🐦 Twitter (X): 🔗 / @max_on_tech
📂 GitHub: 🔗 github.com/max...
🔊 Discord: 🔗 / discord
🏹 ProductHunt: 🔗 www.producthun...
✅ Blog: 🔗 maxontech.io/c...
Thanks so much. a lot of the other youtubers started in really big topics like "self" that i dont know of. but you started simple, keep going man
Glad I could help!
"self" is really important in game development. its not that hard!
Yes same here! I am working on developing a space invaders type game and this video helped me a lot as other youtubers, like you said, all talk about self
Great job! Keep up the good work!
Thanks dude this really helped. Before i was doing collisons like if player_x == enemy_x:
#do something
Glad it helped!
Лучше тебя никто не объяснил работу с классом Rect:) Спасибо
Exactly what I was looking for thanks 🙏
This is a subscriber you have earnt
Haha that's awesome:) Thanks
спасибо большое, ты смог объяснить это за 8 минут в то время как другие объясняют это минут 15-35 большое спасибо
Огромнейшее спасибо вам, вы очень помогли!!!!!
Wow this video just helped me alot. Can you do gravity in the next video?
nice idea. I'll keep this one in mind!
Спасибо😀
you've just earned a subscriber :)
keep on doing the good work!
thanks! will do :)
thank you very much! спасибо огромное!
nice video it is really helped me
btw where did you got that image of the dino?
I think I actually drew it in photoshop. you can find it on my github: codewmax
@@MaxRohowsky ok thx!
very simple thanks you!!
You're welcome! Glad it helped :D
Bro thanks alot I've been dying with that collision thing
Awesome :) Glad it helped!
I thought It was hard before watching Full but after watching It is fucking easy..😊
that's what I like to hear :)
@@MaxRohowsky Very Very Thanks To You
This isn’t what I was looking for but very close I was looking for an on key press collide with object
How would you make it so the dinosaur stops when it gets to the rectangle?
Hey, sorry for the late reply rubiq. That is something that I actually explain in another video. You should find what you are looking for at the end of the following video: ua-cam.com/video/xQ5UCzFKR58/v-deo.html
Best,
Bucket :)
@@MaxRohowsky I looked at the video and I couldn't seem to find the bit you were talking about
You can say if it becomes higher then this coordinates, Dino.y Dino.X = this coordinates
Parabéns pelo vídeo 👏🏻👏🏻👏🏻
Works just fine. Thanks
Good to hear!
my game is always detecting collision even if there is none
how
Thank you for the tutorial :3
You're welcome Jorge!
How would you change it for a collision of two images instead of an image and a rect?
get the rect of your images and you can use them for collision.
Use get_rect() on your image
I need some more pygame geeks in my discord community :D Feel free to join guys! discord.com/invite/JERatQsfY8
@@jaysanprogramming6818 how? i dont get it. i mean, how do you use them for collisions?
👍 thanks!
welcome NoxL!
thank you so much
hey :) welcome!
Can I make the Dino’s rect (hitbox) smaller?
Yes, you could do that by making the image smaller.
i like ur channel to grow
I'm working on it! :) Glad you like it
it works but how to add more obstacle?
Hi AJ, this video might help: ua-cam.com/video/wnBGG7JLrkg/v-deo.html
what editor are you using?
that's pycharm
I just have a question, how do u add an extension on the left
thx
What do you mean by extension to the left?
@@MaxRohowsky i meant the in the program ur puting the code in but i relised ur just using pycharm
Thanks
welcome lemy :)
how can you make the obstacle move
this video will help: ua-cam.com/video/wnBGG7JLrkg/v-deo.html
nice video
thank you
welcome 🔥
thanks bro
welcome :D
how can i hide that rect?
Try giving it the color of the background or a border line of 0 pixels
6:44 is what you came here for
best
Hey, I'm going through my comments picking up early supporters to join my discord! Feel free to join: discord.com/invite/JERatQsfY8
Best
Bucket :)
@@MaxRohowsky glad cuz ur videos are awesome
btw max i highly request u to make godot tutorials
👍👍
🔥
I am the 100th subscriber!
This is amazing. Thanks so so much! Seeing the support is overwhelming!
Moving a thing with pygame.key.getpressed didn't work
its pygame.key.get_pressed u forgot underscore
Quartzy is right :)