boss music stops when entering water

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
FeMaiden
Posts: 290
Joined: Wed Jan 16, 2013 8:16 am

boss music stops when entering water

Post by FeMaiden »

is there a way around this?
I scripted a boss fight and my arena has some places where the player can jump in the water, but when they do, the boss music stops.
I guess the underwater sound is a separate music track?
is there any way to make the boss music keep playing while the player is underwater?
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: boss music stops when entering water

Post by minmay »

nope, going underwater always changes the ambient track to "underwater". replacing that track or using GameMode.playStream() won't do you any good since the track will still restart every time you enter/leave the water.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
FeMaiden
Posts: 290
Joined: Wed Jan 16, 2013 8:16 am

Re: boss music stops when entering water

Post by FeMaiden »

minmay wrote:nope, going underwater always changes the ambient track to "underwater". replacing that track or using GameMode.playStream() won't do you any good since the track will still restart every time you enter/leave the water.
okay, i guess my boss fight was dumb anyway...I wanted mosquitoes to spawn (a much hated enemy) when the player triggers the fight and then they have to jump in the water to escape while periodically poking their heads up to take shots at the mosquitoes. but I suspect this fight would just piss people off anyway. I did leave some bombs as loot in an earlier level to accomodate non fire using parties.
I hardly use bombs but I found they can be useful in certain situations. and I tried to leave bombs in places so the player has them for the more difficult sections of my mod.

I might spawn the mosquites anyway but i'll just make it a regular encounter and I won't lock the player in with them so they can escape and later choose whether they want to kill the mosquitoes or not...
Post Reply