Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Restarting a Procedure...
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
MOUSECORD




PostPosted: Fri Jun 11, 2004 1:35 pm   Post subject: Restarting a Procedure...

Okay i have 3 missile procedure for my missile command i'm using whatdotcolor to reset the missile procedure when it hits the anti missile (missile1, missile2, missile3) procedures... i put

code:

        if whatdotcolor (mx2, my2) not= 7 then
            exit
        end if

this is in a loop that calls the missiles mouse all procedures, but the exit ends the loop... how do i make it so it just ends the one procedure and calls ita gain???
Sponsor
Sponsor
Sponsor
sponsor
MOUSECORD




PostPosted: Fri Jun 11, 2004 1:53 pm   Post subject: (No subject)

what about the return function if the color isn't this then return (end the procedure and start over that would work wouldn't it...?)
aside




PostPosted: Fri Jun 11, 2004 5:03 pm   Post subject: (No subject)

you can call the procedure in a loop, which will be kept been called
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: