Re: Outsmarted by my cog


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]

Posted by on October 09, 1998 at 01:24:46:

In Reply to: Re: Outsmarted by my cog posted by Rishka on October 08, 1998 at 14:25:04:

: I think the problem lies here:

:


: arrived:

: if(GetSenderID() != 7) return;

: curframe=curframe+1;

: if(curframe == lastframe)
: {
: curframe=-1;
: call reset;
: }

: if(curframe >lastframe) <---Shouldn't it be if(curframe < lastframe)?
: {
: gotoframe=curframe + 1;
: MoveToFrame(bomber, gotoframe, bomberspeed);
: return; <---This returns prematurely; the following lines won't be run.

: if(curframe==startframe)
: {
: bombing=1;
: SetPulse(firerate);
: }
: if(curframe==endframe)
: {
: SetPulse(0);
: bombing=0;
: }

: return;
: }

: return;

:




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]