ok maybe i better be a little more specific. I am not using the cursor keys to move the ship. they will be commands input by using
the 'input' command.
input x
input y
sector$(x,y)="x"
now after entering the 'new' coordinates i want to replace the old sector$(x,y) with '.'
ok suppose you start at 1,1 (hypothetical)
works fine going positive like 2,2 or 3,3 and going back to 2,2 and 1,1 as long as you go 1 increment at a time. BUT if you go from 1,1 to 4,4 it doesn't work. I need something that will work for ALL possible coordinates.
If I want to go from sector 1,1 to sector 8,9 it will leave a '.' in 1,1 and put the ship 'x' in 8,9.
OR if I'm at 8,9 and want to goto 3,2 it will leave a '.' in 8,9 and put the ship 'x' in 3,2.
the code you submitted will work fine using the cursor keys but i need it to work for using the 'input' command specifically.
thanks for your reply!
2nd in Command,
Executive Officer,
Black Ice Klan [BIK]