Skip to content

Rectangular Movement (deprecated)

Allow an object to move in a rectangular pattern.

Authors and contributors to this community extension: 4ian, VictrisGames.


This is an extension made by a community member — but not reviewed by the GDevelop extension team. As such, we can't guarantee it meets all the quality standards of official extensions. In case of doubt, contact the author to know more about what the extension does or inspect its content before using it.

Allow an object to move in a rectangular pattern. By default, movement will slow down when going around corners, but this can be changed to always use a constant speed.

Example uses:

  • Moveable platforms
  • Enemy movement patterns


  • Center of movement, X position
  • Center of movement, Y position
  • Horizontal distance
  • Vertical distance
  • Horizontal speed
  • Vertical speed
  • Use constant speed (object will not slow down at corners)
  • Use counter-clockwise direction


  • Set the CenterX and CenterY values to move the object
  • For horizontal movement only, set vertical distance to 0
  • For vertical movement only, set horizontal distance to 0
  • Use conditions to apply logic based on the direction the object is moving. For example, setting the animation.



Learn how to install new extensions by following a step-by-step guide.

Rectangular Movement (deprecated)

Allow an object to move in a rectangular pattern.

Behavior actions

Reset progress counters
Reset progress counters. The object will return to the initial state.

Set center X position
Set center X position.

Set center Y position
Set center Y position.

Use constant speed
Use constant speed.

Use counter-clockwise direction
Use counter-clockwise direction.

Set horizontal distance
Set horizontal distance.

Set horizontal speed
Set horizontal speed.

Set vertical distance
Set vertical distance.

Set vertical speed
Set vertical speed.

Behavior conditions

Object is moving downwards
Object is moving downwards.

Object is moving to the left
Object is moving to the left.

Object is moving to the right
Object is moving to the right.

Object is moving upwards
Object is moving upwards.

Behavior expressions

Expression Description
Object.RectangularMovement::CenterX() Center of movement, X position.
Object.RectangularMovement::CenterY() Center of movement, Y position.
Object.RectangularMovement::HorizontalDistance() Horizontal distance.
Object.RectangularMovement::HorizontalSpeed() Horizontal speed.
Object.RectangularMovement::ProgressX() Counter used to change the X position of the object.
Object.RectangularMovement::ProgressY() Counter used to change the Y position of the object.
Object.RectangularMovement::VerticalDistance() Vertical distance.
Object.RectangularMovement::VerticalSpeed() Vertical speed.

This page is an auto-generated reference page about the Rectangular Movement (deprecated) extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.