Skip to content

New extension: <Skew> #1963

@Carrotstudio0

Description

@Carrotstudio0

Description

This extension adds skew and shear transformation capabilities to 2D objects in GDevelop. You can distort objects by slanting them along the X or Y axis, which transforms rectangles into parallelograms. This is useful for creating visual effects such as perspective distortion, speed motion, wind effects, or artistic stylization in your games. The extension automatically converts between radians used internally by PixiJS and degrees for easier use by developers.

How to use the extension

To use the Skew 2D extension in GDevelop, first install the extension and add it to your project. Once added, select any 2D object in your scene that you want to skew. In the Events Editor, use the actions provided by the extension, such as Set Skew X or Set Skew Y. Enter the skew angle in degrees. Positive values will tilt the object in one direction, while negative values will tilt it in the opposite direction.

You can retrieve the current skew of an object using the SkewX and SkewY expressions. These expressions return the skew angle in degrees and can be used in calculations, conditions, or displayed using text objects.

Image Image Image

Checklist

  • I've followed all of the best practices.
  • I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
  • I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.

Example file

[SkewExtension.zip] (https://github.com/user-attachments/files/24200623/SkewExtension.zip)

Extension file

Skew2D.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions