HI, try it like this
action monster1
{
var goback = 1;
my.enable_scan = on;
my.event = monster_1;
while (goback > 0)
{
my.x += 1.5;
ent_cycle("walk", my.skill46);
my.skill46 += 4 * time;
my.skill1 += 1 *time_step;
if(my.skill1 > 12)//adjust as required
{
my.x -= 1.5;
my.pan = 180;
ent_cycle("walk", my.skill46);
my.skill46 += 4 * time;
}
return;
}
}
or base your script on similar.
Here skill1 has been used as a timer and when it runs out, your char walks backwards and return loops it.
Not tried, just hurridly edited from yours to show a way
