Frictional Games Forum (read-only)
Music during note - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Music during note (/thread-13981.html)

Pages: 1 2


Music during note - Damascus - 03-14-2012

I see plenty of tutorials for narrating a voice while you read a note, but how can I play music while the note is open, like many of Daniel's notes?



RE: Music during note - palistov - 03-14-2012

I think you actually do it with script. When the player picks up the diary note, you can run a function. You set this up with the CallbackFunc or the PlayerInteractCallback field. Simply use the PlayMusic function.


RE: Music during note - Damascus - 03-14-2012

Will that also allow me to stop the music when the note closes? I don't know what script I would use to call a function upon that.



RE: Music during note - A.I. - 03-14-2012

There is a bit easier way to do this, it is what I did on my -*Tortured*- (that I never completed) I just used the regular voice and added the music turned down in the background with Audacity. Maybe a bit easier.


RE: Music during note - Damascus - 03-14-2012

I won't actually be using voices.



RE: Music during note - A.I. - 03-14-2012

Ahhh, then i don't know......if you were to use music as a voice it would go on as long as the music would, unless the player presses escape.


RE: Music during note - Stepper321 - 03-14-2012

You can't, sorry.


RE: Music during note - SilentStriker - 03-14-2012

(03-14-2012, 02:32 PM)Stepper321 Wrote: You can't, sorry.
It is possible to play music when reading a note or diary, they have it in TDD. But I'm not sure if it is possible in notes but I know that it's possible.





RE: Music during note - palistov - 03-14-2012

No, I don't believe there's any native functionality to stop the music after the player closes the note. I think you'll have to let it run its course, after which your other music should resume, providing you put true as the Boolean value for the abResume argument.


RE: Music during note - Your Computer - 03-15-2012

Diaries can have a callback attached to them for when the player closes the diary. This can (at least in theory, i haven't tried it myself) be used to stop the music.