Pygame Tutorial 11 - Invincibility

Subscribers:
53,800
Published on ● Video Link: https://www.youtube.com/watch?v=4oQa59LHTtI



Duration: 0:00
285 views
13


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/