Quote:
Originally Posted by pausch
I'm not sure I completely understand your question, but I think the solution may be to have the event call a method you create, and then in that method do whatever if/then/else that you need to do.
If that doesn't help, can you please try rephrasing your question, and I'll see if I can figure out how to help?
|
Thanks for advice.I have some ideas now.
One more example.
When you playing first person shooting game,eg Battle Field,
you are a soldier,
The keyboard [up,right,left,down] function as
soldier:walk forward,move right, move left, walk backward respectively.
While the soldier is riding on a vehicle,
such as tank,helicoptor,boat,
the keyboard [up,right,left,down] functions are changed:
Tank: move forward,turn right,turn left,move backward
Helicoptor: turn forward,roll right,roll left,turn backward
Boat: move forward,turn right,turn left,move backward
In the example above,the player use the same keys set [up,right,left,down] to do different things while some events happened.
In the Alice,now i can only use one key set.
I am thinking a way to create more than one key set.