
-----------------------------------
sensfan
Wed Nov 30, 2005 12:02 pm

How do you bind? - Before 2:30 If Possible
-----------------------------------
I'm making a game for turing and I need to know how to bind or assign a certain key to make a certain movement. I've done this by using 'If' statements but you have to press enter every time. Can you bind with Turing so you don't have to press enter and if so can you bind something to the arrow keys (what represents them)?

Thanks.

-----------------------------------
sensfan
Wed Nov 30, 2005 12:08 pm


-----------------------------------
Forgot to add this on:

Is there a way to display an animation or image (other than the box and such) in Turing?

-----------------------------------
Tony
Wed Nov 30, 2005 12:41 pm


-----------------------------------
you could use ether getch() or Input.KeyDown()

with 200, 203, 205, 208 for former
or KEY_UP_ARROW, KEY_LEFT_ARROW, KEY_RIGHT_ARROW, KEY_DOWN_ARROW for latter

-----------------------------------
do_pete
Wed Nov 30, 2005 1:12 pm


-----------------------------------
In order to get a picture into turing you have to go variable:=Pic.FileNew("filename.ext") in order to draw it onto the screen you have to go Pic.Draw(variable,x,y,mode). The mode is either picCopy, picMerge, or picXor in order to get an animation you have to alternate between pictures.

-----------------------------------
Dan
Wed Nov 30, 2005 4:25 pm


-----------------------------------
There are detialed tutorals on both of thess subjects in the tutoral section if you real need it that soon.
