Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | misterjdizzle |
I just updated a project to Godot v4 from 3.5
On running my project, I get the error pointing at the second line, but there is no “)” character. What am I missing, or could I look at it to try and fix this?
var rng = RandomNumberGenerator.new()
@export var level_name: String = "level"
Is this all of the code in the class body?
Gluon | 2022-12-07 15:03
This isn’t all the code. DO you mean the second line of the code you’ve pasted, or the second line of the gd file itself?
SteveSmith | 2022-12-07 15:22
Unfortunately, I cannot recreate the error anymore. Now it is complaining about an Identifier not being declared in the current scope, which is weird because this project works in 3.5, so I am unsure now.
misterjdizzle | 2022-12-07 15:30
I meant the second line of code in my original question.
misterjdizzle | 2022-12-07 15:55
Okay if you cannot recreate the error I would suggest opening another question but post all of the code from this class with a statement of the new error. Sounds like there is a problem with the formatting perhaps?
Gluon | 2022-12-07 15:58