Skip to content

Align object on the screen

Align objects on the scene relatively to the window (or screen size).

Authors and contributors to this community extension: grymmjack.

Warning

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.


Align objects on the scene relatively to the window (or screen size).

Be sure to put your object on a layer for which the camera position was not moved.

Actions provided are:

  • ToSceneCentered: horizontally and vertically centered in scene
  • ToSceneTop: vertically to the top in scene
  • ToSceneMiddle: vertically to the middle in scene
  • ToSceneBottom: vertically to the bottom in scene
  • ToSceneLeft: horizontally to the left in scene
  • ToSceneRight: horizontally to the right in scene
  • ToSceneCenter: horizontally to the center in scene
  • ToScreenCentered: horizontally and vertically centered in screen
  • ToScreenTop: vertically to the top in screen
  • ToScreenMiddle: vertically to the middle in screen
  • ToScreenBottom: vertically to the bottom in screen
  • ToScreenLeft: horizontally to the left in screen
  • ToScreenRight: horizontally to the right in screen
  • ToScreenCenter: horizontally to the center in screen

Tip

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

Actions

Align object to bottom of scene
Align object to vertical bottom of scene.

Align object to horizontal center in scene
Align object to horizontal center in scene.

Center object in scene horizontally and vertically
Center object in scene horizontally and vertically.

Align object to horizontal left in scene
Align object to horizontal left in scene.

Align object to vertical middle of scene
Align object to vertical middle of scene.

Align object to horizontal right in scene
Align object to horizontal right in scene.

Align object to vertical top of scene
Align object to vertical top of scene.

Align object to bottom of screen
Align object to vertical bottom of screen.

Align object to horizontal center in screen
Align object to horizontal center in screen.

Center object in screen horizontally and vertically
Center object in screen horizontally and vertically.

Align object to horizontal left in screen
Align object to horizontal left in screen.

Align object to vertical middle of screen
Align object to vertical middle of screen.

Align object to horizontal right in screen
Align object to horizontal right in screen.

Align object to vertical top of screen
Align object to vertical top of screen.


This page is an auto-generated reference page about the Align object on the screen 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.