Skip to content

Change Movement Type

Change Movement Type

Switches the map engine between pixel-based and tile-based movement modes.

Properties

System

Name Explanation Type
Pixel-Based Movement Whether the movement is conducted via pixels, allowing smooth sub-tile positioning. Toggle
Reset to Default Whether to reset the movement type to the default configured in the database. Toggle

Examples

Switch to Pixel-Based Movement

This switches the map engine to pixel-based movement, allowing smooth sub-tile positioning.

change_movement_type(pixel);
{"Data":{"IsReset":false,"IsPixelBasedMovement":true,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Map.MapChangeMovementCommand"}

Switch to Tile-Based Movement

This switches the map engine to tile-based movement, snapping to tile grid positions.

change_movement_type(tile);
{"Data":{"IsReset":false,"IsPixelBasedMovement":false,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Map.MapChangeMovementCommand"}

Reset Movement Type to Default

This resets the movement type to the default configured in the database.

change_movement_type(reset);
{"Data":{"IsReset":true,"IsPixelBasedMovement":true,"Metadata":null},"TypeName":"MAR.Game.RPGCore.Models.Scripts.Commands.Map.MapChangeMovementCommand"}