Oh! I am reminded of another issue that came up creating the DrawWorms Sub.
When I want to clear worm segment locations and start a new set of worms I set DrawReset to -1 = True
when the sub gets this signal I want to clear out the x(), y() data stored in STATIC arrays, I tried Erase but got error, maybe I did wrong? and I knew REDIM wouldn't work so as you see, I went the hard way with 2 indexes and went through and reset each element to 0.
SUB DrawWorms
(DrawReset
) ' one frame in main loop NewWorm i
x(i, j) = 0: y(i, j) = 0
DrawReset = 0
Was there an easier way to clear a STATIC array of values?