Use a counter variable, say "BoxPos", to keep track of where the box currently is. Initially, BoxPos = 0.
The algorithm you need would be something like this:
(This assumes the array is a 'square', with size ArraySize)
Ryan
The algorithm you need would be something like this:
(This assumes the array is a 'square', with size ArraySize)
If Keyhit(theKey) array[BoxPos / ArraySize, BoxPos Mod ArraySize] = 0 BoxPos = BoxPos + 1 array[BoxPos / ArraySize, BoxPos Mod ArraySize] = 1 Endif
Ryan