Opacity panel on Custom Object

Describe the bug

When using a Panel Sprite inside a Custom Object, applying the Tween behavior to interpolate its opacity does not work correctly.
As soon as the opacity is set to 0, the panel no longer behaves normally: the interpolation breaks and the opacity value is no longer respected.

This issue only happens when the Panel Sprite is inside a Custom Object.
The same tween works correctly on a Panel Sprite placed directly in the scene.


Steps to reproduce

  1. Create a new GDevelop project
  2. Create a Custom Object
  3. Inside the Custom Object, add a Panel Sprite
  4. Add the Tween behavior to the Panel Sprite
  5. Create an event that interpolates the opacity (for example from 0 to 255)
  6. Run the scene
  7. Observe that when opacity reaches 0, the panel stops behaving correctly (opacity interpolation no longer works as expected)

Thank you for reporting an issue. Please, attach a project to reproduce the issue.

The button object uses opacity tweens without issue:

1 Like

You can downlaod the zip file hosted on Discord here

1 Like