Flip Actions
In 2D games, you often need to flip a character or object to face left or right - for example, when moving or aiming.
PlayMaker includes helper actions to flip Transforms on the X or Y axis using local scale.
Unlike SpriteRenderer Flip Actions, which only affects the visible sprite, Transform flip actions flip the entire object hierarchy.
This means any attached child objects - such as colliders, particle effects, or weapon attach points - flip correctly as well.
For instance, if your character has a sword or gun mounted in front, using a Transform flip will flip both the character and the weapon, keeping their relative alignment intact.
Note: These actions assume the object faces right by default.
If your object faces left, enable the Invert option.
Flip X to Face Direction
Flips a Transform horizontally to face a Vector2 direction.
Typically used with a movement vector - for example, flipping the object to face the direction it’s moving.
| Parameter | Description |
|---|---|
| Transform | The Transform to flip. |
| Direction | The Vector2 direction to face (for example, from Get Velocity 2D). |
| Invert | Invert the flip logic if your object faces left by default. |
Flip X to Face Float Direction
Flips a Transform horizontally based on a float value.
Positive values face right; negative values face left.
Useful for input axes (e.g., Get Axis) or any animated float representing horizontal direction.
| Parameter | Description |
|---|---|
| Transform | The Transform to flip. |
| Float Direction | Positive = right, Negative = left. |
| Invert | Invert the flip logic if needed. |
Flip X to Face Target
Flips a Transform horizontally to face a target Transform.
Similar to Flip X to Face Direction, but automatically calculates direction based on the target’s position.
| Parameter | Description |
|---|---|
| Transform | The Transform to flip. |
| Target | The Transform to face. |
| Invert | Invert the flip logic if your object faces left by default. |
Flip Y to Face Direction
Flips a Transform vertically to face a Vector2 direction.
Useful for top-down or vertical-scrolling games where the object needs to face up or down.
| Parameter | Description |
|---|---|
| Transform | The Transform to flip. |
| Direction | The Vector2 direction to face. |
| Invert | Invert the flip logic if your object faces down by default. |
Flip Y to Face Float Direction
Flips a Transform vertically based on a float value.
Positive values face up; negative values face down.
Use this to mirror an object vertically according to input or movement.
| Parameter | Description |
|---|---|
| Transform | The Transform to flip. |
| Float Direction | Positive = up, Negative = down. |
| Invert | Invert the flip logic if needed. |
Flip Y to Face Target
Flips a Transform vertically to face a target Transform.
Calculates whether the target is above or below and flips the Transform accordingly.
| Parameter | Description |
|---|---|
| Transform | The Transform to flip. |
| Target | The Transform to face. |
| Invert | Invert the flip logic if your object faces down by default. |
Example Usage
These actions are commonly combined with movement or rotation actions such as:
- Get Axis → Flip X to Face Float Direction
- Get Velocity → Flip X to Face Direction
- Move Towards → Flip X to Face Target
Example Setup
- Add a Transform (e.g., to your player or enemy object).
- Add a Get Axis action to read Horizontal input.
- Add Flip X to Face Float Direction, using the Horizontal axis value.
- Add a Translate or Move Towards action to move the object.
The Transform (and all its children) will automatically flip to face the direction of movement.