Lots of work on saving, enemies and object positions are now saved
This commit is contained in:
@@ -487,3 +487,17 @@ func hit(damage, fired_by, target_type):
|
||||
health_indicator.color = Color(0.471, 0, 0, .25)
|
||||
await get_tree().create_timer(.15).timeout
|
||||
health_indicator.color = Color(0.471, 0, 0, 0)
|
||||
|
||||
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,
|
||||
"health" : level_control.health
|
||||
}
|
||||
return save_dict
|
||||
|
||||
Reference in New Issue
Block a user