Makes lots of new screens
This commit is contained in:
@@ -11,18 +11,6 @@ func _ready():
|
||||
#func _process(delta):
|
||||
# pass
|
||||
|
||||
var healers = load("res://scenes/healers/healers.tscn")
|
||||
|
||||
func _on_pasture_exit_interacted():
|
||||
var path = NavigationServer2D.map_get_path(self.map, self.pathfind.to_local(self.ego.global_position), pathfind.to_local($"healers-exit-point".global_position), true)
|
||||
start_main_script(ScriptBuilder.init(ScriptBuilder.walk_path(self.ego, path))
|
||||
.and_then(ScriptBuilder.transition(self, healers, "pasture-exit-point"))
|
||||
.and_then(ScriptBuilder.walk_to_deferred("pasture-exit-point", "pasture-entrance-point"))
|
||||
.can_interrupt().build(self, "_on_script_complete"))
|
||||
|
||||
func _on_entered_from_pasture():
|
||||
print("HERRREERERE")
|
||||
|
||||
|
||||
func _on_entranceexit_interacted():
|
||||
start_main_script(ScriptBuilder.init(
|
||||
@@ -31,3 +19,8 @@ func _on_entranceexit_interacted():
|
||||
.and_then(ScriptBuilder.say(self.ego, "Just like gramps' one."))
|
||||
.build(self, "_on_script_complete"))
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
|
||||
func _on_healers_interacted():
|
||||
$healers.default_script(self)
|
||||
|
||||
Reference in New Issue
Block a user