So I want to have a wait before “patrolFollow” starts following the player using force. But if I were to add a wait in the infinite loop then it would just stutter since it’s just waiting over and over. I can’t wrap my head around trying to find a solution for this.
Are you setting the exclamation mark on all your patrol objects, or just the one associated with the enemyLightRight?
What is lights? An object group? is enemyLightRight a member of that group?
lights is an object group of enemyrlightright & enemylightleft. The exclamation mark shows up for 0.5 seconds and then goes away when the player collides with the light. The light collision is fine and the enemy switches to patrolfollow correctly and follows the player but I don’t know how to make it wait to follow the player.
You could use an object timer on the PatrolFollow object. Start it when the light collision happens, and only move the PatrolFollow when the timer is greater than a set time limit.