Adding movements to character
The character should be able to move using a combination of Mouse clicks (LMB - Left Mouse Button, MMB - Middle Mouse Button, WMB - Wheel Mouse Button and RMB - Right Mouse Button) and Keyboard inputs inspired by Ryzom :
-
RMB : set the cursor invisible, to show we can’t no more select anything in the screen. -
RMB + mouse move : turn camera around character, the character moves automatically to align back turning its back to camera. Includes collisions for the camera and max angle on azimuth. -
LMB + RMB + move mouse : character goes forward, turning progressively if the camera turns -
WMB : Camera distance (with min and max and steps defined) -
RMB + Left|Right : character strafe left|right -
Left|Right : Turns camera left|right, realigns the character similarly as RMB + mouse moving horizontally -
Forward : Character goes forward -
Backward :Character goes backward -
Automove : Character goes forward untill pressed again -
Walk/Run : Character goes from walking to running speed untill pressed again -
Sit : Character sits where it stands