I am thinking about adding more levels and other feature to my earlier platform game.
The main thing I want to add is the ability for the platform character that is a dog to bark at enemies to beat them but I only want the player to be able to defeat the enemy when they only a certain distance from the enemy.
How can I achieve this
Thank you