Well, if you have an array containing the definition numbers of the sprites, you could iterate over the array like this... 'ARR IS THE ARRAY FOR I=0 TO LEN(ARR)-1 SPDEF I,ARR[I] 'IF YOU ARE USING SP 0 to N, OFFSET I BY N+1 NEXT