got an enemy with a platform behavior and i want him to jump at random intervals (which works fine and was easy to get right) and also to walk forward or backwards for about half a second at different, also random intervals. thing is, setting him to move "every x seconds" will only input that control for one frame. any thoughts on how i can sustain that movement long enough to matter, but also have him stop in between and not just go from left to right?
Ok from your post I am assuming you know how to get the enemy moving left and right but you want him to stop for a moment before turning around.
Ok basically let say you have an invisible box the your enemy hits to make him move back and forth.
Collision , with invisiblebox = accelleration=0
wait(2.0)
accelleration=1000
moveleft=1
moveright=0