Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
TheRealSoloLeo opened this issue Aug 30, 2024 · 2 comments
Closed
1 task done
Labels
Need a game/precise steps to reproduce the issue The bug is hard to reproduce. More detailed steps or investigation is required.

Comments

@TheRealSoloLeo
Copy link

TheRealSoloLeo commented Aug 30, 2024

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.

@AlexandreSi
Copy link
Collaborator

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?

@AlexandreSi AlexandreSi added the Need a game/precise steps to reproduce the issue The bug is hard to reproduce. More detailed steps or investigation is required. label Sep 2, 2024
@TheRealSoloLeo
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Need a game/precise steps to reproduce the issue The bug is hard to reproduce. More detailed steps or investigation is required.
Projects
None yet
Development

No branches or pull requests

2 participants