10-17-2003, 12:18 PM
Quote:I dont think select case would work here.
Code:GGB = INT(RND * BI) + 1 ' AVOIDING BAD BASED ON BAD INTEL
IF GGB = 1 THEN
IF A > BA - 7 THEN A = A - 1 'its these 4 troublesome lines
IF A < BA + 7 THEN A = A + 1
IF B > BB - 7 THEN B = B - 1
IF B < BB + 7 THEN B = B + 1
END IF
its all the IF statements, regarding position of each co-ordinates.
for example, if the A coordinate is more than the enemy minus a bit, IE to his left, then go left until you are no longer in that area.
at least thats the way my mind calculates it.
Case is >BA-7