I guess I would do it something like this:
Give the Sprite a variable Direction
System pick sprite by comparison Abs(sprite.x-player.x) > 100
-- Sprite.x < player.x
Sprite set direction : "Right"
-- Else
Sprite set direction : "Left"
Sprite compare variable direction = "Left"
Sprite simulate platform pressing left
Sprite compare variable direction = "Right"
Sprite simulate platform pressing right