Ummm is there a way to delete my post? I might as well.
Let x = 1 to n
CREATESPRITE x
MOVESPRITE x
PUSHSPRITE x
Code: [Select]Let x = 1 to n
CREATESPRITE x
MOVESPRITE x
PUSHSPRITE x
n = total number of sprites
Sorry I was at dinner so it took me a while to post! I got this from eqwanox's shooter game!
FOR x = 1 to n
IF SPRITEVALID(x)
KILLSPRITE x
NEXT
Yes but the proper syntax would beCode: [Select]FOR x = 1 to n
IF SPRITEVALID(x)
KILLSPRITE x
NEXT
FOR x = 1 TO n
IF SPRITEVALID(x) = TRUE THEN
KILLSPRITE x
END IF
NEXT
Code: [Select]FOR x = 1 TO n
IF SPRITEVALID(x) = TRUE THEN
KILLSPRITE x
END IF
NEXT
:P