Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / Sound plays DURING Storyzone

Author
Message
BedsideReaper
15
Years of Service
User Offline
Joined: 4th Feb 2011
Location: Lakewood, WA
Posted: 11th Sep 2012 20:29
Hey guys. Asking for some help again. I was wondering how I can play a sound AFTER a story zone video. I have both the story zone and sound zone trigger in the exact same spot: where the player spawns, but when the game starts, the sound plays during the video. I'd prefer that the sound play directly after the story zone finished. What can I do to fix this? Thanks!

"I think I'm getting the 'Black Lung,' pop."

"Derrick, you've been down there for one day."
Hamburger
17
Years of Service
User Offline
Joined: 23rd Jun 2009
Location: Grand Rapids MI
Posted: 11th Sep 2012 22:28
You would have to do this with a script... Im not exactly a scripting savant but try looking at some tutorials to get youself introduced to the fpi language.

Basically youd have to wirite a script that tells the zone to play the video and after the video is over play the sound.

[/href]

++New Products Being Uploaded++
BlackFox
FPSC Master
18
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 11th Sep 2012 22:50 Edited at: 11th Sep 2012 22:54
Quite simple.



Attach to a trigger zone. Player hits the zone and the video plays. The script currently is set to then play sound after 60 seconds. Adjust to fit your video length. If the video is 20 seconds, then set the "state=2,etimergreater" to 21 seconds (21000), or whatever you need.

Or... you could use the "storyinzone.fpi" script and modify the properties of the story zone trigger by specifying the sound file and video file in the properties. I switched the "sound=0$" to come after the "video=1$" and it works for me.




Twitter: @NFoxMedia
BedsideReaper
15
Years of Service
User Offline
Joined: 4th Feb 2011
Location: Lakewood, WA
Posted: 17th Sep 2012 21:26
Thank you! It works. However, I have one more problem, and I really didn't wanna make yet another topic. I'm thiiiis close to releasing a demo, but for whatever reason, this current version has a problem with the loading screen. Once the loading finishes, the loading sound still plays over the cutscene I placed. This hasn't happened with any of the other build's that I've made. What can I do to fix this so I can finally release a demo?

"I think I'm getting the 'Black Lung,' pop."

"Derrick, you've been down there for one day."

Login to post a reply

Server time is: 2026-07-04 09:30:17
Your offset time is: 2026-07-04 09:30:17