Pygame Tutorial 14 - Changing Enemy Direction

Subscribers:
54,400
Published on ● Video Link: https://www.youtube.com/watch?v=wzqxdE-qeyE



Duration: 0:00
167 views
6


pygame tutorial. In the previous video, we implemented firing bullets so that megaman can destroy the metall enemies. When firing bullets, we had to update the megaman sprites so that megaman is in a shooting position with his arm cannon, fire bullets and detect collision with the megaman, and clean up destroyed metalls, and bullets that have been used or gone off screen.

Next, we want to make the metall enemies be able to fire bullets at megaman. However, before we implement that, we will have metall change direction left or right to always face megaman. That way, when we do implement firing bullets with metall, megaman cannot just simply jump behind metall to dodge the bullets.

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:    • Create a Platformer Game in Python with Py...  

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/