Board Thread:Questions and Answers/@comment-26338521-20150506052318/@comment-76.118.205.152-20150506112131

Try this:

SPRITES=20

DIM ARR(SPRITES) - or whatever number you want

FOR I=O TO SPRITES-1

whatever you want here

NEXT

I hope this helps.