godot-docs icon indicating copy to clipboard operation
godot-docs copied to clipboard

Parser bug (Please report)

Open gonzalezharry opened this issue 2 years ago • 0 comments

Godot version: 4.0

Hi! I saw this error in the Output console while coding. Godot5

That's all the code I had in the script when the error popped out, below are a bunch of comments (Next to be turned into pseudocode) that summarize what the script will do. I deleted the - sign at the end of the y value assignament of the Vector2, and the console stopped sending that message. PS: The tile object to which I'm assigning the position isn't defined in the script. That's because I was iterating through the tiles_subset array, then decided to do an index-based iteration, but forgot to change tile to tiles_subset[i]. (As I said the console stopped sending the message as soon as I deleted the - sign, which happend before correcting the variable name) PS2: After correcting the variable name (tile changed to tiles_subset[i]) I rewrote the - sign at the end of the Vector2 y value assignment (without typing any value next to it) and the console sent the error again. Hope this helps, if any more information is necessary don't hesitate on letting me know!

gonzalezharry avatar Mar 05 '23 16:03 gonzalezharry