Skip to main content

PGMMV Coordinates Plugin

Utilities for working with 2D coordinates.

Action Commands

NameDescriptionParameters
Camera to WorldConvert variables from camera to world coordinates.
NameValue
Input Variable Source:Project Common, Object Self, Parent Object
Input X:VariableId
Input Y:VariableId
Output Variable Source:Project Common, Object Self, Parent Object
Output X:VariableId
Output Y:VariableId
World to CameraConvert variables from world to camera coordinates.
NameValue
Input Variable Source:Project Common, Object Self, Parent Object
Input X:VariableId
Input Y:VariableId
Output Variable Source:Project Common, Object Self, Parent Object
Output X:VariableId
Output Y:VariableId

Link Conditions

NameDescriptionParameters
In RectangleTest if object instance position is within rectangle. Rectangle x & y coordinates correspond to top left.
NameValue
Rect Variable Source:Project Common, Object Self, Parent Object
X:VariableId
Y:VariableId
Width:VariableId
Height:VariableId
Is Tile MultipleTest if object instance position is located at a multiple of the tile width or height (default is both).
NameValue
Axis:X, Y, Both
In TileTest object position in current tile. Tile origin (0,0) is top left, (1,1) is bottom right, and (0.5, 0.5) is center (default). The default comparator is '='.
NameValue
Variable Source:Project Common, Object Self, Parent Object
Comparison X:<, <=, =, >=, >, !=
Origin X:VariableId
Comparison Y:<, <=, =, >=, >, !=
Origin Y:VariableId
In Tile (Horizontal)Test object position horizontally in current tile. Tile origin 0 is left, 1 is right, and 0.5 is center (default). The default comparator is '='.
NameValue
Variable Source:Project Common, Object Self, Parent Object
Comparison X:<, <=, =, >=, >, !=
Origin X:VariableId
In Tile (Vertical)Test object position vertically in current tile. Tile origin 0 is top, 1 is bottom, and 0.5 is center (default). The default comparator is '='.
NameValue
Variable Source:Project Common, Object Self, Parent Object
Comparison Y:<, <=, =, >=, >, !=
Origin Y:VariableId