If the non-player object is simply performing a ping-pong movement left and right it might be better to remove the platform behaviour and either:
1) add another sine behaviour set to horizontal movement
or
2) give the object max_X, min_X and speed instance variables then add code along the lines of:
Every tick object.X = self.X+self.speed
If object.X > object.max_X OR object.X < object.min_X, trigger once, object.speed = object.speed*-1