From 499392238db4eca473ad973b370392c60c4a9605 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 25 Feb 2021 13:33:37 -0500 Subject: Started working on scene with Lucas going underwater The resurfacing animation seems pretty good actually. Not sure about the sound effect for him submerging. Also gotta fix the issue with cutscenes in non-normal media. --- res/scripts/hallucination_hot_spring.lua | 21 ++++++++++++ res/scripts/underwater.lua | 57 +++++++++++++++++++++++++++++++ res/sfx/splash_resurface.wav | Bin 0 -> 272640 bytes res/sfx/splash_submerge.wav | Bin 0 -> 141984 bytes res/sprites/lucas_anim.txt | 5 ++- 5 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 res/scripts/underwater.lua create mode 100644 res/sfx/splash_resurface.wav create mode 100644 res/sfx/splash_submerge.wav (limited to 'res') diff --git a/res/scripts/hallucination_hot_spring.lua b/res/scripts/hallucination_hot_spring.lua index 27dd6ac..489a64e 100644 --- a/res/scripts/hallucination_hot_spring.lua +++ b/res/scripts/hallucination_hot_spring.lua @@ -7,3 +7,24 @@ end function hallucination_hot_spring.off_right() ChangeMap("hallucination_cliff", "fromLeft") end + +function hallucination_hot_spring.testing_lucas_submerge() + StartCutscene(DO_NOT_CHANGE_ANIMATION) + ShowExpression("lucas", "surprise") + SetAnimation("lucas", "swim_still") + Delay(1000) + RemoveExpression("lucas") + Delay(2000) + SetAnimation("lucas", "submerge!") + Delay(200) + PlaySound("splash_submerge.wav") + WaitForAnimation("lucas") +end + +function hallucination_hot_spring.testing_lucas_resurface() + SetAnimation("lucas", "drown") + Delay(3000) + SetAnimation("lucas", "resurface!") + PlaySound("splash_resurface.wav") + WaitForAnimation("lucas") +end diff --git a/res/scripts/underwater.lua b/res/scripts/underwater.lua new file mode 100644 index 0000000..660a2d4 --- /dev/null +++ b/res/scripts/underwater.lua @@ -0,0 +1,57 @@ +underwater = {} + +function underwater.fish1() + StartCutscene() + DisplayMessage("* You deserved what she did to you.", "Fish", SpeakerType.BOY) + WaitForEndOfMessages() + HideCutsceneBars() +end + +function underwater.fish2() + StartCutscene() + DisplayMessage("* What are you complaining about?\nYou're so powerful now...\n\fYou owe it all to her.", "Fish", SpeakerType.BOY) + WaitForEndOfMessages() + HideCutsceneBars() +end + +function underwater.fish3() + StartCutscene() + DisplayMessage("* You wanted to become stronger, and now you're stronger. Quit crying.\n\f* Oh wait, that wasn't you.\n\fThat was Claus.\n\fYou were totally willing to stay at home and cry.", "Fish", SpeakerType.BOY) + WaitForEndOfMessages() + HideCutsceneBars() +end + +function underwater.fish4() + StartCutscene() + DisplayMessage("* You think it hurt when she unlocked your PSI?\n\fJust picture what it was like for Claus.", "Fish", SpeakerType.BOY) + WaitForEndOfMessages() + HideCutsceneBars() +end + +function underwater.fish5() + StartCutscene() + DisplayMessage("* What did Aeolia do to your brother?\n\fStrangle him?\n\fPush him down a flight of stairs?\n\fMaybe it was in the hot spring just like you.", "Fish", SpeakerType.BOY) + WaitForEndOfMessages() + HideCutsceneBars() +end + +function underwater.fish6() + StartCutscene() + DisplayMessage("* Still, I bet you can't wait to get your revenge. You don't fool me.\n\f* You have everyone else fooled but you can't fool yourself.", "Fish", SpeakerType.BOY) + WaitForEndOfMessages() + HideCutsceneBars() +end + +function underwater.fish7() + StartCutscene() + DisplayMessage("* There's only three left.\nAnd after Mixolydia, it'll be her.", "Fish", SpeakerType.BOY) + WaitForEndOfMessages() + HideCutsceneBars() +end + +function underwater.fish8() + StartCutscene() + DisplayMessage("* I bet you can't wait to wrap your hands around her needle,\n\fand\n\fpull\n\fas\n\fhard\n\fas\n\fyou\n\fcan.", "Fish", SpeakerType.BOY) + WaitForEndOfMessages() + HideCutsceneBars() +end diff --git a/res/sfx/splash_resurface.wav b/res/sfx/splash_resurface.wav new file mode 100644 index 0000000..3516884 Binary files /dev/null and b/res/sfx/splash_resurface.wav differ diff --git a/res/sfx/splash_submerge.wav b/res/sfx/splash_submerge.wav new file mode 100644 index 0000000..9b24b64 Binary files /dev/null and b/res/sfx/splash_submerge.wav differ diff --git a/res/sprites/lucas_anim.txt b/res/sprites/lucas_anim.txt index 5eb7d91..d81c69c 100644 --- a/res/sprites/lucas_anim.txt +++ b/res/sprites/lucas_anim.txt @@ -59,4 +59,7 @@ swim_walk[up_left]: 402 swim_walk[up]: 403 swim_walk[up_right]: 404 swim_walk[right]: 405 -swim_walk[down_right]: 406 \ No newline at end of file +swim_walk[down_right]: 406 +submerge![down]: 418,419,420,421 +drown[down]: 421,422,423,424,425,426,427 +resurface![down]: 428,429,430,431,432,433,399 \ No newline at end of file -- cgit 1.4.1