I'm trying to make a game in my game design class and i'm having a few problems.
i have it so every 5 seconds an enemy will appear, but when I want that enemy to do something, all of them will do it instead of just 1
1. I need to make an event that will launch an object when the player is in front of the enemy
2. I need to know how to make some sort of AI (which will be the enemy) that will take random turns at certain points (while still launching an object when the player is in front of them)
I'm not even sure these are possible as I am very much new at this but I hope you can help me out.