
-----------------------------------
Uber Tankz
Fri Jun 09, 2006 12:08 am

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.

-----------------------------------
[Gandalf]
Fri Jun 09, 2006 12:44 am


-----------------------------------
You can find the tutorial located in the [Turing Tutorials] section over [url=http://www.compsci.ca/v2/viewtopic.php?t=114]here.

-----------------------------------
Remm
Fri Jun 09, 2006 8:52 am


-----------------------------------
also a nice one in the turing referance...

-----------------------------------
Hack.saw
Fri Jun 09, 2006 8:11 pm


-----------------------------------
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:

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

-----------------------------------
Jimbo 420
Mon Jun 12, 2006 11:57 am


-----------------------------------
look in the turing help menu of the turing program it'll tell you exactly what to do to make it work
