That'll work, but I wouldn't want too many sprites to be running that sort of loop. Also its a pain to write, and there are situations where you wouldn't want to, i.e., things created with create sprite because their sprite numbers (I think) are prone to change.
MiloBones has released 4 files
|Very Dink Christmas (A)||D-Mod, Unfinished||4.4||April 9th, 2006|
|Tile Puzzle||D-Mod, Miscellaneous, Demo||8.7||July 24th, 2005|
|Hardboxer||Development||9.0||August 31st, 2004|
|Ants (The)||D-Mod, Demo||7.3||July 22nd, 2004|