From e03683852cac9b31ca846fcf13ff53abf99232c7 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 27 Feb 2021 17:40:26 -0500 Subject: Added A* pathfinding --- res/scripts/underwater_start.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'res/scripts/underwater_start.lua') diff --git a/res/scripts/underwater_start.lua b/res/scripts/underwater_start.lua index 56b0b5e..7259d05 100644 --- a/res/scripts/underwater_start.lua +++ b/res/scripts/underwater_start.lua @@ -9,5 +9,26 @@ function underwater_start.talk_to_fish1() StartCutscene() DisplayMessage("* You deserved what she did to you.", "Fish", SpeakerType.BOY) WaitForEndOfMessage() + + Delay(500) + + PanToSprite("fish1", 1000) + WaitForPan() + + Delay(500) + + UnpauseSprite("fish1") + RemoveEnclosureZone("fish1") + DirectSpriteToLocation("fish1", "fish_destination", PathfindingOptions.CARDINAL_DIRECTIONS_ONLY) + CameraFollowSprite("fish1") + WaitForSpritePath("fish1") + + Delay(1000) + DestroyNamedSprite("fish1") + + Delay(500) + + ReturnCamera(1000) + HideCutsceneBars() end \ No newline at end of file -- cgit 1.4.1