Pygame Tutorial 11 - Invincibility
pygame tutorial. In the previous video, we went over how to create the classic enemy in megaman games, called a metall, have it collide and land on the tiles, and detect collision between metall and megaman. In this video, we go over how to handle collision detection so that each moment of collision counts as a single hit instead of constant hits. To avoid constantly counting collision, we create a timer that sets megaman invincible for 1 second, which allows megaman enough time to move out of the enemy's range.
How to install Python for VS Code: • How to set up Python on Visual Studio Code
How to install Pygame: • How to Install Pygame
Pygame Tutorial Playlist: • Pygame Python Game Programming Tutorial
Click on the link below to access the images used in the tutorial!
Github for Pygame Tutorial Code: https://github.com/ImKennyYip/pygame
Python Object Oriented Programming Playlist: • Python Object Oriented Programming
Python Game Projects Tutorial Playlist: • Python Game Programming Tutorials
Pygame Website: https://www.pygame.org/
Other Videos By Kenny Yip Coding
2025-07-28 | Pygame Tutorial 21 - Tile Map |
2025-07-24 | Pygame Tutorial 20 - Scrolling Camera |
2025-07-23 | Pygame Tutorial 19 - Flying Enemies |
2025-07-22 | Pygame Tutorial 18 - Traps, Hazards, Spikes |
2025-07-21 | Pygame Tutorial 17 - Items |
2025-07-04 | Pygame Tutorial 16 - Enemy Defense |
2025-07-02 | Pygame Tutorial 15 - Enemy Bullets |
2025-06-30 | Pygame Tutorial 14 - Changing Enemy Direction |
2025-06-25 | Pygame Tutorial 13 - Shooting Bullets |
2025-06-20 | Pygame Tutorial 12 - Create a Health Bar |
2025-06-11 | Pygame Tutorial 11 - Invincibility |
2025-06-02 | Code Flappy Bird in Python with Pygame |
2025-05-19 | Code Pacman in Javascript |
2025-05-10 | Pygame Tutorial 10 - Multiple Enemies |
2025-05-09 | Pygame Tutorial 9 - Enemies |
2025-04-22 | Pygame Tutorial 8 - Platforms and Collision |
2025-04-22 | Pygame Tutorial 7 - Friction |
2025-04-08 | Pygame Tutorial 6 - Jumping |
2025-04-07 | Pygame Tutorial 5 - Game Boundaries |
2025-04-04 | Pygame Tutorial 4 - Drawing Images |
2025-04-02 | Pygame Tutorial 3 - Keyboard Input |