Lots of work on saving, enemies and object positions are now saved
This commit is contained in:
@@ -10,7 +10,18 @@ func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
func target_change():
|
||||
var target = get_node(SaveLoad.last_hit_path)
|
||||
if target:
|
||||
global_rotation = Vector3(0,0,0)
|
||||
global_transform.origin = target.global_position + Vector3(0,2,0)
|
||||
pass
|
||||
|
||||
|
||||
func save():
|
||||
var save_dict = {
|
||||
"filename" : get_scene_file_path(),
|
||||
"parent" : get_parent().get_path(),
|
||||
"pos_x" : position.x,
|
||||
"pos_y" : position.y,
|
||||
"pos_z" : position.z,
|
||||
"rot_x" : rotation.x,
|
||||
"rot_y" : rotation.y,
|
||||
"rot_z" : rotation.z,
|
||||
}
|
||||
return save_dict
|
||||
|
||||
Reference in New Issue
Block a user