Hello. Currently, I am making a pretty simple platformer game where you beat up guys as you defeat a science company or whatev. Just imagine reverse Half-Life without the aliens.
I am currently in the process of making the gameplay so I can prepare for the first level n such. At the moment, I’m stuck with my first (main) enemy. The goal of this enemy is to be exactly like the player but half as speedy (and anything else I add in the future). However, I cannot program the first step: making the enemy follow the player.
I do not want to go down the path of a back-and-forth enemy. It doesn’t fit the style of the platformer. I want an enemy that will possibly use a pathfinding system to go to the player and attack them. As long as the enemy can walk to the player’s location, I can do the rest.
I just can’t find the right things to piece together to create it. How do I make an AI platformer character that’ll attack the player?