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

Username:   Password: 
 RegisterRegister   
 help with whatdotcolour
Index -> Programming, Turing -> Turing Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
MOUSECORD




PostPosted: Thu Jun 10, 2004 6:24 pm   Post subject: (No subject)

ahh fawk now when i put it in "for" is like a loop so when i click it freezes everything else... how do i make it not do that AHHHHHHH i had it all working u know u click it expands then implodes but the for loop is like .... it gets stuck in it until its done how can i make everything else keep going at same time??
Sponsor
Sponsor
Sponsor
sponsor
MOUSECORD




PostPosted: Thu Jun 10, 2004 6:43 pm   Post subject: (No subject)

see
code:

 procedure mouse

   var mousex, mousey, button : int
    mousewhere (mousex, mousey, button)
    if button = 1 then
   
    for rad: 1..25
    cls
        drawoval (mousex, mousey, rad, rad, 66)
    delay(25)   
    end for   
   
   
    for decreasing rad: 25..1
    cls 
            drawoval (mousex, mousey, rad, rad, 66)
    delay(25)
    end for
    end if
end mouse


loop
cls
mouse
delay(25)
View.Update
end loop

if i put something else in the loop say one of my misiles for the game (missile command) the missile lags until the mouse procedure is finished.... is there any way to get around this and still have the same Mouse Procedure affect ... i really need this anyone knows??
aside




PostPosted: Thu Jun 10, 2004 8:56 pm   Post subject: (No subject)

is there a limit of boolets you can shoot? if so, then it would be easier to do.
aside




PostPosted: Fri Jun 11, 2004 12:00 pm   Post subject: (No subject)

if you are sick and tired of this, you can just use fork. it's not recommended, but if you are just lazy, go ahead.
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 2 of 2  [ 19 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: