fire bullet animation and my enemy shooting
- Randel Mezi
- May 1
- 1 min read
During this phase, I implemented the fire bullet and enemy shooting mechanics. The fire bullet now features an animation that triggers each time the enemy shoots, creating a visual effect of flames emanating from the bullet. Furthermore, the enemy is now capable of shooting in any direction, allowing them to target the character even as they move around the environment, provided the enemy can follow. The animation is synchronized with the enemy's shooting action.

Here is the animation, Fire Bullet.

Here's the code I've been working on for the fire bullet. It handles the projectile's movement, collision detection, and fire effects. I've added comments to explain each section.

Comments