Local variables don't work in the "Change effect property (Number)" event
TheRealSoloLeo opened this issue · 2 comments
TheRealSoloLeo commented
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
The "Change effect property (Number)" event for an object doesn't work with local variables
Steps to reproduce
- Create an event with a local variable
- Add a new object to the scene
- Add an effect with number parameters to the object
- 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.
AlexandreSi commented
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?
TheRealSoloLeo commented
Sorry, I just realised that this happened because of an issue in my project's events, not because of a GDevelop bug. Oops.