Computer Science Canada

Arrow key help

Author:  pj_ladd12 [ Mon Aug 21, 2006 9:06 pm ]
Post subject:  Arrow key help

Hello everyone, i know how to use input keydown very well but i am having trouble.

I have four lines, and my box or whatever you wanan call it is one the first line. I want to make it so when you hit the left and right arrow key, it will go to the next line, back and fourth.

| | | |
| | | |
| | | |
| | | |
| | | |


so those are the four luines, and i want to control the ball left and right


any ideas? thank u

Author:  richcash [ Mon Aug 21, 2006 9:59 pm ]
Post subject: 

Umm, could you be more specific with what the moving of the ball off the lines?

Just in case you need to know :

For the Right Arrow Key :
(chr (205)) or
(KEY_RIGHT_ARROW)

For the Left Arrow Key :
(chr (203)) or
(KEY_LEFT_ARROW)

Author:  Clayton [ Tue Aug 22, 2006 1:56 pm ]
Post subject: 

could you plz post some code so we can tell what youve attempted so far? that way we can better understand whats (supposed to be) going on, and so we know that we arent doing this for you


: