I wanna ask on simulate control. So, I made an AI to move left and right after 200 steps. It's something like this:
Enemy: steps = 100 => moveto = "left"
Enemy: steps = -100 => moveto = "right"
Enemy: moveto = "left" => Wait 2 seconds, simulate platform moving left, add -1 to steps
Enemy: moveto = "right" => Wait 2 seconds, simulate platform moving right, add 1 to steps
But I want when they reached steps = 100 or steps = -100, the enemy have to stop. How to do that?