Movement Definition & Movement Set

Movement definition
A Movement Definition is a data asset of type GMS_MovementDefinition
, which is a core part of GMS where most functionalities are concentrated. You create this type of data asset in the editor to perform the main GMS configuration.
Each movement definition contains multiple MovementSetSetting
.
GMS provided project contains Lyra animations and pre-configured movement definitions by default. You can find the related files under MovementSystem/Extras
.
Creating a Movement Definition
Create a movement definition data asset named MS_Mannequin_Unarmed
.


Then, It's how a new movement set settings looks like.

Adding Movement Definition to the Component
Find the movement system component and add the newly created movement definition to the MovementDefinitions
array. Set the default movement set tag to "GMS.MovementSet.Default"
.

This way, during gameplay, the movement set settings associated with GMS.MovementSet.Default
from that movement definition will be used.