Ellipse movement
Move objects on ellipses or smoothly back and forth in one direction.
Authors and contributors to this experimental extension: 4ian, VictrisGames, D8H.
It allows objects to move:
- on an ellipsis or arcs
- smoothly vertically or horizontally (by setting one radius to 0)
- on a sine wave (by adding a force)
Instances will start their movement from their initial position on the scene. The center position will be decided according to the "initial direction" angle and the radius.
It can be used for:
- Making objects float, such as powerups or coins
- Moving platforms
- Enemy movement patterns
- Making a player constantly turn right or left (open the project online)
Tip
Learn how to install new extensions by following a step-by-step guide.
Ellipse movement
Move objects on ellipses or smoothly back and forth in one direction.
Behavior actions
Loop duration
Change the loop duration.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2 (🔢 Number): Speed (in degrees per second)
Technical note: parameter 3 are internal parameters handled by GDevelop.
Teleport at an angle
Change the movement angle. The object is teleported according to the angle.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2 (🔢 Number): Movement angle
Technical note: parameter 3 are internal parameters handled by GDevelop.
Radius X
Change the radius on X axis of the movement.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2 (🔢 Number): Radius X
Technical note: parameter 3 are internal parameters handled by GDevelop.
Radius Y
Change the radius on Y axis of the movement.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2 (🔢 Number): Radius Y
Technical note: parameter 3 are internal parameters handled by GDevelop.
Turn left or right
Change the in which side the object is turning (left or right).
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
- Parameter 2 (❓ Yes or No): Turn left
Technical note: parameter 3 are internal parameters handled by GDevelop.
Turn the other way
Change the turning direction (left or right).
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
Technical note: parameter 2 are internal parameters handled by GDevelop.
Behavior conditions
Is turning left
Check if the object is turning left.
See parameters
- Parameter 0: 👾 Object
- Parameter 1: 🧩 Behavior
Technical note: parameter 2 are internal parameters handled by GDevelop.
Behavior expressions
Expression | Description | |
---|---|---|
Object.EllipseMovement::CenterX() |
Return the movement center position on X axis. | |
Object.EllipseMovement::CenterY() |
Return the movement center position on Y axis. | |
Object.EllipseMovement::LoopDuration() |
Return the loop duration (in seconds). | |
Object.EllipseMovement::MovementAngle() |
Return the movement angle of the object. | |
Object.EllipseMovement::RadiusX() |
Return the ellipse radius on X axis. | |
Object.EllipseMovement::RadiusY() |
Return the ellipse radius on X axis. |
This page is an auto-generated reference page about the Ellipse movement 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.