This is easily accomplished with invisible sprites and I am doing it now all the time, it works.
But I am just wondering...since this is SO common in Platform games you know...why doesn't maybe there is a trigger/behavior WHATEVER that would trigger a call [assuming it is a trigger] to tell the programmer to switch the enemy's direction when end of the floor is reached ?
Or if this is behavior, it might have an auto mirror [horizontal mirror ofcourse] when end of ground is reached.
Again not necessary, but if incorporated, I can see people using it IMMEDIATELY.
Please make sticky if agree or else, sorry for my stupid idea