Posted by . on October 08, 1998 at 14:24:25:
In Reply to: Re: Archived - posted by . on October 08, 1998 at 14:22:44:
: : I think the problem lies here: : : : if(GetSenderID() != 7) return; : : : curframe=curframe+1; : : : if(curframe == lastframe) : : : if(curframe >lastframe) <---Shouldn't it be if(curframe < lastframe)? : : : if(curframe==startframe) : : : return; : : : return;
: : : arrived:
: : : {
: : : curframe=-1;
: : : call reset;
: : : }
: : : {
: : : gotoframe=curframe + 1;
: : : MoveToFrame(bomber, gotoframe, bomberspeed);
: : : return; <---This returns prematurely; the following lines won't be run.
: : : {
: : : bombing=1;
: : : SetPulse(firerate);
: : : }
: : : if(curframe==endframe)
: : : {
: : : SetPulse(0);
: : : bombing=0;
: : : }
: : : }