Closed Doomhardt closed 1 month ago
This looks like the expression guards are using expression properties which are not yet set when the guard evaluates. So you will need to set some initial values for your expression properties. You can either do this using set_expression_property
inside of a _ready
function, or starting with version 0.16.0 you can also use the inspector for this:
It works without any errors now, thank you
Great, thanks for reporting back!
I'm using a 'DirectionControl' Compound State Node as a way to know which direction the player is facing and playing the appropriate animation for it in my top down game. Whenever I run the game I get about 20 error messages for each of the transitions (this one is for Horizontal Middle to Down on the Horizontal Axis) though occasionally I get about 40. The game still runs perfectly fine.
E 0:00:00:0871 expression_util.gd:19 @ evaluate_expression(): (guard in /root/World/Player/StateChart/Root/DirectionControl/Horizontal Axis/HMid/To Down) Expression execute error: self can't be used because instance is null (not passed) for expression: input_direction.x > -0.85 <C++ Source> core/variant/variant_utility.cpp:1091 @ push_error()