Posted March 24, 2025 by Danep
I created a very simple game in which the player is chased by enemies (the capsules) and when touched the enemies get destroyed. there is also a health pack (the cube) to bring the players health points back up. The player is controlled using the wasd keys and the enemies follow a navmesh to get an idea on a path to the player. when I was creating the enemies chasing player script the enemies kept getting launched away when the player ran into them, I liked this so I created a delay when the enemies get destroyed so it looks like they get kicked away and destroyed. if I had more time I would like to add explosions to when they are destroyed for a better effect.