
-----------------------------------
besomebody
Sun Jan 11, 2009 9:17 pm

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:

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 =)

-----------------------------------
The_Bean
Sun Jan 11, 2009 10:25 pm

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
