Skip to content

New example: Showcase Layer Effect #1060

Description

@NicolasDemangeat

Description

Layer Effects (GDevelop Example)

This example demonstrates how to preview and switch between multiple visual effects applied to the Base layer in a GDevelop scene.
It is designed to help users quickly see how each effect looks in-game and choose the ones that fit their project.

Overview

The scene contains a collection of layer effects (such as blur, glow, and other post-processing filters) attached to the Base layer.
At the beginning of the scene, all these effects are disabled so the user starts from a neutral view.

By clicking on buttons, the user can change which effect is currently active.

How to Use

  • Run the example in GDevelop.
  • Click on the buttons to enable the corresponding effect on the Base layer.
  • Only one effect is meant to be active at a time, making it easy to compare how each one changes the overall look and atmosphere of the scene.

There is nothing else to configure: simply press the buttons and observe the visual changes on the Base layer.

How It Works

Internally, the scene uses GDevelop’s layer effects feature to apply visual post-processing to Base layer.

When a button is clicked, an event:

  1. Disables the previously active effect.
  2. Enables the effect whose name matches the button’s label.

This creates a simple “effects browser” where each button corresponds to one effect, and the user can cycle through them without needing to open the layer editor during runtime.

Purpose

I created this example to help users visualize the different effects available on layers and understand how they influence the final image of their game.
It can serve both as a quick reference when choosing an atmosphere (night, retro, glitch, etc.) and as a starting point for building more advanced effect-driven systems, such as damage feedback or day/night cycles.

Checklist

  • I've followed all of the best practices.
  • My game has a proper name in the game properties.
  • My game package name begins with com.example..
  • My game has all events unfolded.
  • I've added myself as the author in the game properties.
  • I've included a file called "README.md" with a description in proper English, explaining what this example is doing.
  • I confirm that this game and all of its resources can be integrated to this GitHub repository, distributed and MIT licensed.
  • I've cleaned unused resources.

Game project folder

Layer Effect Example-local.zip

Game preview

Click here to see example on gd.games

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions