mouse keyboard input
Posted: Fri Aug 05, 2005 2:48 pm
hello
i have two lil questions
1) how i can get the input of the keyboard for controlling a 2d sprite
eg.
w = move 10px up
a = move 10px right
s = move 10px left
s = move 10px down
can i use the same method like in Tutorial 4 (Movement)?
and the second question
2)how to know if the left/right mouse kes is pressed?
I hope some one can help
i have two lil questions
1) how i can get the input of the keyboard for controlling a 2d sprite
eg.
w = move 10px up
a = move 10px right
s = move 10px left
s = move 10px down
can i use the same method like in Tutorial 4 (Movement)?
and the second question
2)how to know if the left/right mouse kes is pressed?
I hope some one can help