Skip to main content

PGMMV Snap-To-Tile Plugin

Position objects within their current tile

Help

This plugin provides a way to position an object with its current tile, relative
to the tile's top or left. Suitable for use with platformer-style ladder tiles,
overview-style grid movement, or any other use case that requires object
positioning within a tile.

Object position within a tile is expressed as a value between 0 (left or top)
and 1 (right or bottom). Separate action commands are provided for 2-axis and
single-axis positioning.

Action Commands

NameDescriptionParameters
Snap to TileSnap object position to current tile. Tile origin (0,0) is top left, (1,1) is bottom right, and (0.5, 0.5) is center (default).
NameValue
Variable SourceProject Common, Object Self, Parent Object
Origin XVariableId
Origin YVariableId
Snap to Tile (Horizontal)Snap object position horizontally to current tile. Tile origin 0 is left, 1 is right, and 0.5 is center (default).
NameValue
Variable SourceProject Common, Object Self, Parent Object
Origin XVariableId
Snap to Tile (Vertical)Snap object position vertically to current tile. Tile origin 0 is top, 1 is bottom, and 0.5 is center (default).
NameValue
Variable SourceProject Common, Object Self, Parent Object
Origin YVariableId