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

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




PostPosted: Sun Jan 11, 2009 9:17 pm   Post subject: Parallelget Problem

I need to make an extremely simple game for class, and I've only been using turing for a little bit more than a week. My game needs to use a joystick, therefore using parallelget. What I want to have, are circles poping up on the screen, and the user having to copy the direction of the circle (eg. if the circle is north, you have to move the joystick up).

I've already made it so that the dots come up on the screen randomly:

code:
var random: int
loop
random:= Rand.Int (1,4)
if random = 1 then
drawfilloval (310,360,10,10,brightred)
delay (1000)
drawfilloval (310,360,10,10,0)
delay (100)
elsif random = 2 then
drawfilloval (500,220,10,10,brightred)
delay (1000)
drawfilloval (500,220,10,10,0)
delay (100)
elsif random = 3 then
drawfilloval (100,220,10,10,brightred)
delay (1000)
drawfilloval (100,220,10,10,0)
delay (100)
elsif random = 4 then
drawfilloval (310,80,10,10,brightred)
delay (1000)
drawfilloval (310,80,10,10,0)
delay (100)
end if
end loop


But, how am I suppose to use parallelget in here so that if you dont go the right direction, you lose?
Thanks =)
Sponsor
Sponsor
Sponsor
sponsor
The_Bean




PostPosted: Sun Jan 11, 2009 10:25 pm   Post subject: Re: Parallelget Problem

There is a Joystick module built into Turing, aswell as a good one that can be found here: http://compsci.ca/v3/viewtopic.php?t=17192&highlight=joystick
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  [ 2 Posts ]
Jump to:   


Style:  
Search: