Pygame Tutorial 14 - Changing Enemy Direction
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/
Other Videos By Kenny Yip Coding
4 days ago | 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 |
2025-03-31 | Pygame Tutorial 2 - Drawing and Graphics |
2025-03-31 | Pygame Tutorial 1 - Create a Game Window |
2025-03-31 | How to Install Pygame |
2025-03-21 | Python Nested Classes (Inner Class) |