How do I make the enemy or obstacle follow the player

Hey! I have an bomb obstacle and How do I make the enemy or obstacle follow the player

It depends on what style of game it is and how you’re moving the player.