Movement Control Settings

Movement Control Settings
GMS_MovementControlSetting
allows you to configure movement/rotation settings for multiple different movement states, achieving different speeds and control feelings in various movement states.
Creating Movement Control Settings

You can create a new movement control setting by creating a data asset of type GMS_MovementControlSetting
in the editor.
Adding Control Settings to Movement Set Settings
GMS provides a wealth of pre-configured movement control settings. Here, we will use MC_Normal
.

If you are a heavy user of overlays, you may also want different OverlayMode
to influence control. You can add mappings between different OverlayMode
and movement control settings in the ControlSettings
map. For a specific OverlayMode
, if there is no corresponding valid control setting, it will fall back to the default control settings.
Movement State Settings
A movement control setting can contain multiple movement state settings (MovementStateSetting
).
For example:MC_Normal
defining common movement states: walk, run, and sprint.

A movement control setting requires at least one movement state setting, and this array should be sorted by speed from lowest to highest.
Each movement state setting can specify its movement speed, level, acceleration, deceleration, and rotation methods under different rotation modes.

Rotation Modes
- ViewDirection: The character's orientation is influenced by
ControlRotation
. - VelocityDirection: The character's orientation is influenced by speed (which can be based on player input direction or movement direction).