Hey guy's, so i'm following along with this video [](http:// "") and at the time stamped is where things start to go wrong for me :( godot seems to think that the "new" function is non-existent for some reason? it says "Invalid call. Nonexsistent function "new" in base "Nil".
any thoughts??
also now having troubles with the global save script, this could be the source of the problem...
"Script inherits from native tpe "Resource", so it can't be instanced by object type: "node""
If you are using the new keyword, you need to give your script a class_name.
@fire7side said: If you are using the new keyword, you need to give your script a class_name.
what does this mean>?
In your resource script:
extends resource class_name MyClass
In another script:
var class_instance_name = MyClass.new()
https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_basics.html
@fire7side said: In your resource script: extends resource class_name MyClass In another script: var class_instance_name = MyClass.new() https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_basics.html
@fire7side said: In your resource script:
alright i got that, but now i seem to be having some troubles with the verify save. would you mind having a look and helping me out at all?
I might can take a look if you post it.