using the code written by nathan99 i have a charictor which can move around and jump using the arrow keys and also mouseclick to jump.
Im desingning for a pda and wanted to make it so when the mouse is moved left or right the charitor moves left or right and when the mouse has stoped moving left or right the charictor stops.
On a pda this would work well as the charitor could be completely controled using the pen/stylus thing instead of having to use annoying fidderly keys.
I need to try and adapt this code, so it works as: if(xmouse)? somehow instead of if(keydown
if (Key.isDown(Key.LEFT)) {
if (speed>-maxmove) {
speed–;
}
any suggestions would be of much niceness thanks