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

Username:   Password: 
 RegisterRegister   
 Mouse Help
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
dic




PostPosted: Wed Feb 01, 2006 4:31 pm   Post subject: Mouse Help

im pretty new to turing, and im curious if there is a way to output the command only when the mouse button is down. i want to do a game like the helicopter game
http://www.hurtwood.demon.co.uk/Fun/copter.swf
thanx in advance
Sponsor
Sponsor
Sponsor
sponsor
Andy




PostPosted: Wed Feb 01, 2006 4:57 pm   Post subject: (No subject)

F9 mousewhere
redrenagade




PostPosted: Thu Feb 02, 2006 5:00 pm   Post subject: (No subject)

Mouse where works fine. You could also try to assign a boolean value that is false and becomes true whenever the mouse is down. That way you can have a procedure that works whenever the mouse is down.
iker




PostPosted: Thu Feb 02, 2006 8:53 pm   Post subject: (No subject)

redrenagade wrote:
Mouse where works fine. You could also try to assign a boolean value that is false and becomes true whenever the mouse is down. That way you can have a procedure that works whenever the mouse is down.

OR
code:

if button = 1 then
...

which takes less code then including a boolean[/b]
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  [ 4 Posts ]
Jump to:   


Style:  
Search: