11-26-2005, 12:42 AM
im creating a little game and i ned borders for the edges, hjeres wat im using:
IF charx% < 0 THEN charx% = 0
IF charx% > 303 THEN charx% = 319
IF chary% < 0 THEN chary% = 0
IF chary% > 183 THEN chary% = 199
the char sprite is 16x16, the top anf left borders work, but the bottom and rite dont seem to want to work, as soon as it gets close, it returns to the editor and sais illegal function or something like that
IF charx% < 0 THEN charx% = 0
IF charx% > 303 THEN charx% = 319
IF chary% < 0 THEN chary% = 0
IF chary% > 183 THEN chary% = 199
the char sprite is 16x16, the top anf left borders work, but the bottom and rite dont seem to want to work, as soon as it gets close, it returns to the editor and sais illegal function or something like that