0 votes

I saved the game by saving the scene to a .tscn file, opening it later, but nothing was saved normally, as if everything was from the beginning, but with the positions saved.
(Called from the scene)

var packed_scene = load("user://scene.tscn")
var my_scene = packed_scene.instance()


var packed_scene = PackedScene.new()
ResourceSaver.save("user://scene.tscn", packed_scene)

Node variables are not saved. I tried to use it but nothing worked. The positions of the objects were preserved, but the rest was not. And the vehicleBody generally fell somewhere...
Is there any way to fix this, save the scene completely, or do I have to write my save code?

Godot version 3.5.1
in Engine by (79 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.