4ian/GDevelop

Local variables don't work in the "Change effect property (Number)" event

TheRealSoloLeo opened this issue · 2 comments

Is there an existing issue for this?

Describe the bug

The "Change effect property (Number)" event for an object doesn't work with local variables

Steps to reproduce

  1. Create an event with a local variable
  2. Add a new object to the scene
  3. Add an effect with number parameters to the object
  4. Add the "Change effect property (Number)" for that effect and write the local variable's name in "New value"

GDevelop platform

Desktop, Web, Mobile

GDevelop version

5.4.209

Platform info

Windows 11

Additional context

This probably also happens in the "Change effect property (string)" event and in layer effect events.
This happened to me with a video object, I don't know if it happens with other objects too.
Scene variables don't have this issue.

Hi @TheRealSoloLeo,
Thanks for taking the time to report this issue.
As far as I tested, this works well (sprite object, outline effect, padding parameter).
Could you send a project where it doesn't work?

Sorry, I just realised that this happened because of an issue in my project's events, not because of a GDevelop bug. Oops.