A rule for hovering at a fixed camera position

Constructors

Accessors

Methods

Constructors

  • Indicate that this actor should hover at a specific location on the screen, rather than being placed at some point on the level itself. Note that the coordinates to this command are the center position of the hovering actor. Also, be careful about using hover with zoom... hover is relative to screen coordinates (pixels), not world coordinates, so it's going to look funny to use this with zoom

    Parameters

    • hoverX: number

      the X coordinate (in pixels) where the actor should appear

    • hoverY: number

      the Y coordinate (in pixels) where the actor should appear

    Returns HoverMovement

Accessors

  • get rigidBody(): undefined | RigidBodyComponent
  • Returns undefined | RigidBodyComponent

  • set rigidBody(body): void
  • The Actor to which this movement is attached

    Parameters

    Returns void

Methods

  • Do any last-minute adjustments related to the movement

    Parameters

    Returns void

  • Stop hovering

    Returns void