better...

by Michael Calkins (Login MCalkins)
Moderator

 

The reason is a misplaced END IF

IF curpos < 1 THEN curpos = 1
IF curpos > 379 THEN curpos = 379
IF curtpos + (speed * 30) > 450 THEN curtpos = 450 - (speed * 30)
IF curtpos < 1 THEN curtpos = 1
END IF
END IF

should be:

END IF
IF curpos < 1 THEN curpos = 1
IF curpos > 379 THEN curpos = 379
IF curtpos + (speed * 30) > 450 THEN curtpos = 450 - (speed * 30)
IF curtpos < 1 THEN curtpos = 1
END IF

also, if you change:

ponescore = ponescore + 1

to:

ponescore = ponescore + 1
GOTO begin

and change:

ptwoscore = ptwoscore + 1

to:

ptwoscore = ptwoscore + 1
GOTO begin

you should be able to eliminate all error trapping.

Regards,
Michael



    
This message has been edited by MCalkins on Sep 5, 2011 6:20 PM

Posted on Sep 5, 2011, 6:19 PM

Respond to this message   

Return to Index

Response TitleAuthor and Date
alsoMichael Calkins on Sep 5
 Re: alsoanonymous on Sep 6
  Re: alsoanonymous on Sep 6
  Re: Re: alsoMichael Calkins on Sep 8
   Re: Re: alsopmarathe on Sep 8

 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement