In this small example I'm working on, the player character is chased by robots.
To achieve this, I have the robots move like so:
RoboX >= PlayerX
>Set Speed to 0 - Speed.Value
RoboX <= PlayerX
>Set Speed to Speed.Value
I want to keep them on specific platforms. So I place little boxes called Borders on the edges.
RoboX >= Border.Left
>Set RoboX to Border.Left - 4
RoboX <= Border.Right
>Set RoboX to Border.Right + 4
But that does not work.
Now, I gave the Robos platform behavior for walking around - I've tried Custom Movement but it seems to run in to the same problem.
I suspect that the issue might lie in what the Robos detect is Border.Left and Border.Right, because it seems that toggling one or the other yields the same results as having both conditions on. Perhaps something with the set Horizontal Speed to Speed.Value? The possibilities are endless :p
There is the possibility that even in the space of 4 events, I've complicated this more than necessary. Basically, I just want the game's enemies to stay on their own platforms, hanging out on the edge until the player moves past them, changing their direction. They're always following the player.