lennaert thank you. In your case the solution was to make a manual timer with a new variable
But it still has an issue - it turns too early. It should turn when it starts walking in the other direction, not when it stops.
Your welcome blurymind
The turning should be easily to manipulate, it just a matter of re-positioning sub-event 8 & 9 and adding a extra check on the timeout-wait check to prevent continues flipping.
something like this
Also, I left the for each above it, while it is not needed in most cases, it clarifies a lot (readability) when you look at it from a programmers perspective. (especially one relatively new to construct 2)
Plus, you can move several events below it as sub-events and use the plus sign to open and close a range of events belonging to that loop. Ofc you could use a group too but ,meh, this was easy and for hand
In the end it will generally not matter if you added it or not, as the construct 2 engine will generally create the same javascript result out of the event sheet in this case.