Game Maker

Relative Velocity

Applies a velocity to an entity relative to its own facing direction.

This action is similar to Velocity, but the direction is calculated relative to the target entity's own facing direction, not world coordinates.

Configuration

  • Target: The entity to apply velocity to.
  • Operation: Set or Add to the current velocity.
  • Forward: The amount of force to apply forward.
  • Right: The amount of force to apply to the right.
  • Up: The amount of force to apply upward.

Example

Create a "dash" ability that pushes the player forward.

  • Event: Player Drop Item (triggered by dropping a specific custom item).
  • Action: Relative Velocity
    • Target: Player
    • Operation: Set
    • Forward: 2.0
    • Right: 0
    • Up: 0.5