Computer Science Canada

How do you bind? - Before 2:30 If Possible

Author:  sensfan [ Wed Nov 30, 2005 12:02 pm ]
Post subject:  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.

Author:  sensfan [ Wed Nov 30, 2005 12:08 pm ]
Post subject: 

Forgot to add this on:

Is there a way to display an animation or image (other than the box and such) in Turing?

Author:  Tony [ Wed Nov 30, 2005 12:41 pm ]
Post subject: 

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

Author:  do_pete [ Wed Nov 30, 2005 1:12 pm ]
Post subject: 

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.

Author:  Dan [ Wed Nov 30, 2005 4:25 pm ]
Post subject: 

There are detialed tutorals on both of thess subjects in the tutoral section if you real need it that soon.


: