Hmm, Ran into another issue (sorry to keep bugging you). even when setting `unit.position` to a hardcoded vector, like `unit.position = Vector3(1, 1, 1)` I get an error: `Invalid set index 'position' (on base: spatial) with value of type 'Vector 3'` Any ideas as to how to fix this?
Ah, thanks! I finally got the object to instantiate, though the mouses vector 2 cant be set to the required vector 3. However, that isnt too big of an issue and ill figure that out on my own. Thanks for the help!
Thank you very much for the answer!, However, I am running into an error when attempting to utlize it. It says Invalid type in function add_child in base KinematicBody (Player.gd) The Object-Derived classs of argument 1 (packedSceen_ is not a subclass of the expected argument For context, my player (where I inserted your code) is a seperate scene, which I then have linked to the main scene. Should I change this to get it to work?
Never mind, dumb mistake on my part. in 3d its `translation` not `position`
Hmm, Ran into another issue (sorry to keep bugging you). even when setting `unit.position` to a hardcoded vector, like `unit.position = Vector3(1, 1, 1)` I get an error: `Invalid set index 'position' (on base: spatial) with value of type 'Vector 3'` Any ideas as to how to fix this?
Okay! Will do.
Ah, thanks! I finally got the object to instantiate, though the mouses vector 2 cant be set to the required vector 3. However, that isnt too big of an issue and ill figure that out on my own. Thanks for the help!
Thank you very much for the answer!, However, I am running into an error when attempting to utlize it. It says
Invalid type in function add_child in base KinematicBody (Player.gd) The Object-Derived classs of argument 1 (packedSceen_ is not a subclass of the expected argumentFor context, my player (where I inserted your code) is a seperate scene, which I then have linked to the main scene. Should I change this to get it to work?It seems like the game needs a little juice. Try adding more of a response when you land and bounce up. Maybe some screen shake?
End of this list.
Back to top