02-21-2005, 10:28 AM
what is faster in general computing regardless of language(if that works)
or
the purpose of the code is to redraw the map if x or y is equal to those given points, it is testing the sprite position. points (1,8 ) , (16,1) ... do not occure
Code:
If X=16 or X=1 or Y=1 or Y=8
CALL redrawmap
Code:
If X=16
CALL redrawmap
if X=1
CALL redrawmap
if Y=1
CALL redrawmap
if Y=8
CALL redrawmap
the purpose of the code is to redraw the map if x or y is equal to those given points, it is testing the sprite position. points (1,8 ) , (16,1) ... do not occure