Computer Science Canada

OMG! INPUT.KEYDOWN

Author:  Uber Tankz [ Fri Jun 09, 2006 12:08 am ]
Post subject:  OMG! INPUT.KEYDOWN

okay, i have this whole input.keydown thinger but its confusing and i hate it um can someone post the simplist possible way to get input OR a basic skeleton for doing the input.keydown way? word.

Author:  [Gandalf] [ Fri Jun 09, 2006 12:44 am ]
Post subject: 

You can find the tutorial located in the [Turing Tutorials] section over here.

Author:  Remm [ Fri Jun 09, 2006 8:52 am ]
Post subject: 

also a nice one in the turing referance...

Author:  Hack.saw [ Fri Jun 09, 2006 8:11 pm ]
Post subject: 

Inputkeydown isnt too hard to learn. The tutorial was amazing, id never heard of it before nad learned it in like 5 mins. only thing u have to memorise is the array char boolean thing oherwise this is the gen. skele:

code:
Input.KeyDown (chars)
   

    if chars (KEY_UP_ARROW) then
        y := y + 5
        delay (10)
    end if


    if chars (KEY_DOWN_ARROW) then
        y := y - 5
        delay (10)
    end if


    if chars (KEY_RIGHT_ARROW) then
        x := x + 5
        delay (10)
    end if


    if chars (KEY_LEFT_ARROW) then
        x := x - 5
        delay (10)
    end if

    drawfilloval (x, y, 10, 10, red)
    View.Update
%(coverup)
end loop

Author:  Jimbo 420 [ Mon Jun 12, 2006 11:57 am ]
Post subject: 

look in the turing help menu of the turing program it'll tell you exactly what to do to make it work


: