|
-
Mar 29th, 2002, 02:14 PM
#1
Thread Starter
Addicted Member
How can I call a sub and tell it to stop executing?
Hi, I have a little problem.
I have a main loop something like:
Do
'code here
if Collision then Explode
Do Events
Loop
--------------------------------------------
Sub Explode()
'explosion code
End sub
So I have a loop that checks for collisions in my game and if there are any, it calls the Explode sub. Now my question is, how do I stop the Explode sub from executing after a certain amount of time. The timing itself is not the problem, I can use timer interval, but how do I STOP the explode sub?
Thanks a lot!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|