Hello everyone!
I’m facing a problem when trying to use a parameter within a function I created in GDevelop 5.
The function receives a number as a parameter (called, for example, OriginX).
Inside an event of this function, I’m trying to use this parameter in a formula, such as:
sign(OBJ_Target.X() - Parameter::OriginX)
However, GDevelop shows me the error message “You must enter a number” underlined in the Parameter::MyNumber part.
I have already checked:
If the parameter name (OriginX) is typed correctly, including capitalization, exactly as defined in the function’s configuration.
If the parameter is defined as the “Number” type in the function’s configuration.
If I am using this formula within the events of the function itself.
Even with these checks, the error persists.
Has anyone experienced something similar or have any suggestions on what might be causing this problem and how to solve it?
Any help is appreciated!