How do I make the enemy go to player when spotted? Like, the enemy is doing nothing until the player shows up.Once the player has been spotted, the enemy goes to the player and try to kill him. How do I do that?
Use line of sight and when within a distance you want the AI to attack, make it stop moving and have bullet objects move towards players last postion.
Can you be more specific? I'm very confused
Is this going to work for what you said?
I've just made an example, which should explain what you wanted:
Thanx man I needed this
Develop games in your browser. Powerful, performant & highly capable.