Well, of course the protagonist can't move, since you telling the game to "wait", when you wait you are blocking.
If the action will have to be repeated every x times, then you'll need a timer.
Start the timer at room start, or after fadein, and in rep_exe check for if the timer has expired, when expired set the animation in motion again.
To make the characters act in the BG, you need to start them moving (non-blocking) at room_start or afterfadein, and then check in rep_exe if they are animating, and if not, you just tell them to animate again. make sure you add repeate.
Also, why are you locking and unlocking the animation?
If you want them to keep repeating the actions, lock their view then "cJuan.Animate(2, 5, eRepeat , eNoBlock, eBackwards);"
Then in rep_exec, just check if (!cJuan.Animating) cJuan.Animate(2, 5, eRepeat , eNoBlock, eBackwards);
EDIT: Okay, technicaly you don't even need to start them animating at room_start or afterFadeIn... since the rep_exec will pick up and start the animation... so just do the rep_exe line and see if that solves your problems
If the action will have to be repeated every x times, then you'll need a timer.
Start the timer at room start, or after fadein, and in rep_exe check for if the timer has expired, when expired set the animation in motion again.
To make the characters act in the BG, you need to start them moving (non-blocking) at room_start or afterfadein, and then check in rep_exe if they are animating, and if not, you just tell them to animate again. make sure you add repeate.
Also, why are you locking and unlocking the animation?
If you want them to keep repeating the actions, lock their view then "cJuan.Animate(2, 5, eRepeat , eNoBlock, eBackwards);"
Then in rep_exec, just check if (!cJuan.Animating) cJuan.Animate(2, 5, eRepeat , eNoBlock, eBackwards);
EDIT: Okay, technicaly you don't even need to start them animating at room_start or afterFadeIn... since the rep_exec will pick up and start the animation... so just do the rep_exe line and see if that solves your problems