ok many thanks!
am studying it; breaking the timer trigger into cascading sections sounds about right
be nice if there was a
SetTimerEx
for a simple repeat option
yu got me thinking many thanks...(i was worried i was mising somthing simple in the reference manual on repeating scripts)
i got to take the settimer out of the repeatedly execute or give it extra triggers to prevent it running every cycle..and place the set timer in the room start then have an extra trigger for it (have i got that right)
brain wave!! perhaps if i set the characters idle animation to set the timer then it might be self contained?
ill go and have an experiment...all good stuff many thanks for the inspiration..!!
got to say that AGS is a great hobby in it self!
many thanks !
OK got it!!!!
in repeatedly execute;
if (IsTimerExpired(1)==1)
{int ran=Random(7);
if (ran==0) MoveCharacter(GDTWO,character[GDTWO].x-36,character[GDTWO].y);
else if (ran==1) MoveCharacter(GDTWO,character[GDTWO].x+34,character[GDTWO].y);
else if (ran==2) MoveCharacter(GDTWO,character[GDTWO].x,character[GDTWO].y-36);
else if (ran==3) MoveCharacter(GD,character[GD].x+34,character[GD].y);
else if (ran==4) MoveCharacter(GD,character[GD].x,character[GD].y-36);
else if (ran==5)MoveCharacter(GD,character[GD].x,character[GD].y+36);
else MoveCharacter(GDTWO,character[GDTWO].x,character[GDTWO].y+36);
SetTimer(1,200);
}
then this in enters room after fade in
SetTimer(1,200);
nice one!!!
am studying it; breaking the timer trigger into cascading sections sounds about right
be nice if there was a
SetTimerEx
for a simple repeat option
yu got me thinking many thanks...(i was worried i was mising somthing simple in the reference manual on repeating scripts)
i got to take the settimer out of the repeatedly execute or give it extra triggers to prevent it running every cycle..and place the set timer in the room start then have an extra trigger for it (have i got that right)
brain wave!! perhaps if i set the characters idle animation to set the timer then it might be self contained?
ill go and have an experiment...all good stuff many thanks for the inspiration..!!
got to say that AGS is a great hobby in it self!
many thanks !
OK got it!!!!
in repeatedly execute;
if (IsTimerExpired(1)==1)
{int ran=Random(7);
if (ran==0) MoveCharacter(GDTWO,character[GDTWO].x-36,character[GDTWO].y);
else if (ran==1) MoveCharacter(GDTWO,character[GDTWO].x+34,character[GDTWO].y);
else if (ran==2) MoveCharacter(GDTWO,character[GDTWO].x,character[GDTWO].y-36);
else if (ran==3) MoveCharacter(GD,character[GD].x+34,character[GD].y);
else if (ran==4) MoveCharacter(GD,character[GD].x,character[GD].y-36);
else if (ran==5)MoveCharacter(GD,character[GD].x,character[GD].y+36);
else MoveCharacter(GDTWO,character[GDTWO].x,character[GDTWO].y+36);
SetTimer(1,200);
}
then this in enters room after fade in
SetTimer(1,200);
nice one!!!