Wall text and custom sounds

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
TheKuu
Posts: 4
Joined: Mon Oct 22, 2012 8:50 pm

Wall text and custom sounds

Post by TheKuu »

Is there a way to play a sound when a wall text is activated ? Perhaps there is a clever way to place a hidden button that spans across the entire wall. Also, is it possible to pause/resume the music, like it does when you rest ?
DarkCowboy
Posts: 2
Joined: Mon Oct 22, 2012 9:38 pm

Re: Wall text and custom sounds

Post by DarkCowboy »

I'm pretty sure you can do it by scripting it.

I'm still new at this and still learning, so this example is probably not 100% accurate.
Not too sure about hook names, but in general something like this:

function revealWallText ()
spawn('walltext', levelcoordinate, x-coordinate, y-coordinate, facing)
playSound('soundname')
end

And then just hook it up with your preferred trigger.

It's a pretty rough example, but some of the more adept scripters will probably swoop by, to fill in the blanks and correct my mistakes.
Just a rough idea in my head how I would go about it.

Edit: Sorry about a completely useless answer. I thought you wanted sound to play when revealing walltext, not activating it.
User avatar
TheKuu
Posts: 4
Joined: Mon Oct 22, 2012 8:50 pm

Re: Wall text and custom sounds

Post by TheKuu »

No problem, thanks for the reply. I'm just looking to have a sound play when the player clicks on the wall text that's already spawned there.
User avatar
djoldgames
Posts: 107
Joined: Fri Mar 23, 2012 11:28 pm
Contact:

Re: Wall text and custom sounds

Post by djoldgames »

TheKuu wrote:No problem, thanks for the reply. I'm just looking to have a sound play when the player clicks on the wall text that's already spawned there.
Definitely not ;( Because the walltext entity doesn't any hook.
We need some sort of onClick() hook added from the developers in the future...
Post Reply