Like this:
As you see it's a function.
Function esplosione() For c.esplosione = Each esplosione Select c\grandezza Case 1 ;small If MilliSecs() > c\timer + 50 ;i use a slowdown of 50 millisecs c\timer = MilliSecs() c\frame = (c\frame+1) Mod 15 ;i loop trough the 7 frames of animation:this is a smaller explosion EndIf If c\frame => 14 Delete c Else DrawImage explosion1,c\posizX,c\posizY,c\frame EndIf End Select Next End Function
As you see it's a function.