Skip to content

Trail 2D - #2244

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
extension/Alainlusk/2243
Open

Trail 2D#2244
github-actions[bot] wants to merge 1 commit into
mainfrom
extension/Alainlusk/2243

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Description

Adds 2D trail objects that follow another object as it moves.
Customize the trail appearance with up to 2 colors, blended together as a gradient.

How to use the extension

  1. Add a Trail2D object to your scene, depending on your game's dimension.
  2. Configure the trail's colors and gradient in the object's properties.
  3. Use the object's actions to attach it to the object you want to leave a trail behind.

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.

AI usage

  • I used an AI to generate some part of the code.
  • I don't understand the generated code or I don't feel able to modify it.

Example file

Trail2D-Exemple.zip

Extension file

Trail2D-Extension.zip


Extension by @Alainlusk

You can update the extension on this "Pull Request" by commenting the update command: in the comment field, type !update, then drag and drop a zip file with your extension file in the commenting field, like how you initially submitted the extension. It should look like this:

!update [MyExtension.zip](https://github.com/GDevelopApp/GDevelop-extensions/files/12709661/MyExtension.zip)

It can take a few seconds for the file to fully upload and show as the above. Once it is like shown above, click "Comment" and let the bot do the rest!

@github-actions
github-actions Bot requested a review from a team as a code owner August 25, 2026 11:25
@github-actions github-actions Bot added the ✨ New extension A new extension label Aug 25, 2026
@github-actions github-actions Bot changed the title New extension: <title> Trail 2D Aug 25, 2026
@D8H

D8H commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Thank you for submitting an extension.

Have you tried this other extension?

@Alios5

Alios5 commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Yes, I'm well aware of your extension, I've used it several times and it actually served as the basis for developing this (which is why you're listed as co-creator).

While using it for trails, I ran into several limitations:

It's never been added to GDevelop's official extension library despite being around for a while
The trail's behavior seems tied to framerate/performance (shorter or longer depending on the machine)
Bug: the trail can disappear past a certain distance from its origin when following an object
Initialization bug: the trail starts at (0,0) before catching up to the target object, causing an unwanted jump at the start
It requires a texture, whereas I sometimes just wanted a simple gradient between a start color and an end color

That's why I built this new extension - mainly to make creating trails easier, not to redo the same thing, but to build on your work and improve it. @D8H

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ New extension A new extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants