Game Maker: Easy Enemy AI (Idle, Chase, Attack, and Flee)

I have created a tutorial on how to create an enemy object in Game Maker Studio that will have basic AI using a short amount of code. The link to this tutorial in below on the YoYo Games (Software Developers of Game Maker Studio) Community page.

Link to my post on YoYo Games Forum

Example gif of code posted in my Forum tutorial. It shows collision detection, other enemy avoidance, and proximity triggers I explain in the code comments (// text) on my Forum post above.