Pygame Tutorial - Part 11 - Hitboxes

preview_player
Показать описание
Learn to create your own 2D-Video Games using the module Pygame with Python. In this video we'll visualize the hit-boxes of our characters.

◾◾◾◾◾
🎬 Overview 🎬

Previous Episode:
1️⃣0️⃣ Pygame Tutorial - Part 10 - Enemies

Next Episode:
1️⃣2️⃣ Pygame Tutorial - Part 12 - Object Collisions

◾◾◾◾◾
💳 Attribution:

📷 Sprites and Images:
- Background: Dylan Squires

👪Related Content

◾◾◾◾◾ 🌎 Let's Connect! ◾◾◾◾◾

🌟 Please leave a LIKE and SUBSCRIBE for more! 🌟

#Pygame
Рекомендации по теме
Комментарии
Автор

Help I have a scrolling camera but the hitbox just scrolls up when the player moves up, leaving the enemy sprite behind, so after running around they get immediatley desynced

bruhmaster
Автор

is your project is came from tech with tim?

jhondarllespiritu
Автор

How do you remove the hitbox, so it isn't visible?

UriMachine
Автор

you can use self.rect = self.image.get_rect() and then use self.rect.colliderect(enemy) to detect the collisions?

johnstarfire
join shbcf.ru