The issue I am running into is I am not sure how to remove the parser error now
I have been following along with a guide, both written and video format and the code I have entered doesnât seem to work at all! The guide is based on 4.1 and I am using 4.2.1 and I am getting errors that the presenter is not getting when I try to use any lines containing âGlobalâ.
examples: if Global.player.velocity.length() == 0.0:
This returns: âLine 8: Identifier âGlobalâ not declared in the current scope.â
I am not sure what I did wrong as I have a Global_Settings.gd with variables set up. I havenât seen anything related to this being different between versions though.
I discovered this is the reason why my @export variables are not working thanks to another user here so now that that is cleared up I am still unable to run my game because this error crashes the preview when I attempt to run the project.
Sorry if this is too much nonsense, I am still very new.
the error says âfunction signature doesnât match the parent.â
âParent signature isâ: func update() -> void:
your function signature is: func update(delta)
you need to either conform to the parent class signature or, modify the parent class signature to match WalkingPlayerState, or choose a different function name for the class.
Error checking typically breaks down after the first error it sees. I bet if you fix the signature error, the other will clear itself.