An input every X seconds will result in a very fast input to the movement...
What you need to do is make conditions and meet them to release a movement every tick while the condition is true, i.e.:
- Player is in LOS:
-- Check Player position:
--- Add conditions to refine it's position against the enemy: Simulate control ABC to the enemy.
That's why I prefer pathfinder instead of simulate control.
But, if you want make a platform game with an enemy walking left/right in a pattern, it's simpler, just put the condition:
Local variable Side: 0;
- Enemy Is on the screen:
-- If Side is 0: Simulate control Left;
-- Else: Right;
- Every 2 seconds: Side = choose(0,1);
Download some tutorials or take a look inside C2 sample files to understand more about the logics and remember, always when you have something happening along the way, it need to happen also in the events, otherwise, it will happen only when the condition is meet. Conditions like Every Tick give you continuous true if you don't check another condition with it.