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

Username:   Password: 
 RegisterRegister   
 Shooting Help
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
Monduman11




PostPosted: Sun May 16, 2010 7:12 pm   Post subject: Re: Shooting Help

BigBear @ Sun May 16, 2010 4:26 pm wrote:
Monduman11 @ Sun May 16, 2010 3:46 pm wrote:
so like this?
Turing:

var ball : boolean
ball := false
var chars : array char of boolean

var xPos : int := 20
var yPos : int := 20

loop
Input.KeyDown (chars)
    if chars (KEY_ENTER) then
        ball := true
        xPos := 20 %Don't Forget
    end if
    if ball = true then
        xPos += 5
        drawfilloval (xPos, yPos, 7, 7, 9)
        delay (10)
        cls
    end if

end loop

ah yes thank you... i knew i was forgetting something.
Sponsor
Sponsor
Sponsor
sponsor
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  [ 16 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: