Stuff
This commit is contained in:
@@ -17,7 +17,7 @@ func _ready():
|
||||
|
||||
func _process(delta):
|
||||
super(delta)
|
||||
#var cam = get_viewport().get_camera_2d()
|
||||
var cam = get_viewport().get_camera_2d()
|
||||
#if target:
|
||||
#
|
||||
#cam.global_position = $SetPiece/thingpoint.global_position #+= ($SetPiece/thingpoint.global_position - cam.global_position).normalized() * 5000.0 * delta
|
||||
@@ -44,5 +44,16 @@ func _on_entered_from_pasture():
|
||||
print("HERRREERERE")
|
||||
|
||||
func _on_set_piece_interacted():
|
||||
target = $SetPiece/thingpoint.global_position
|
||||
$AnimationPlayer.play("focus_thing")
|
||||
#$target = $SetPiece/thingpoint.global_position
|
||||
#$ThingCamera.enabled=true
|
||||
#$ThingCamera.make_current()
|
||||
var path = NavigationServer2D.map_get_path(self.map, self.pathfind.to_local(self.ego.global_position), pathfind.to_local($"look-at-thing-point".global_position), true)
|
||||
start_main_script(ScriptBuilder.init(ScriptBuilder.walk_path(self.ego, path))
|
||||
.and_then(ScriptBuilder.switch_camera("ThingCamera"))
|
||||
.and_then(ScriptBuilder.say(self.ego, "Look at the cute goat!"))
|
||||
.and_then(ScriptBuilder.reset_camera())
|
||||
#.and_then(ScriptBuilder.transition(self, pasture, "healers-exit-point"))
|
||||
#.and_then(ScriptBuilder.walk_to_deferred("healers-exit-point", "healers-entrance-point"))
|
||||
.build(self, "_on_script_complete"))
|
||||
|
||||
#$AnimationPlayer.play("focus_thing")
|
||||
|
||||
Reference in New Issue
Block a user