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 Scripts / Help with a Story/Effect/ Fadout Hud Script

Author
Message
Kumi
15
Years of Service
User Offline
Joined: 12th Jul 2009
Location: Behind You
Posted: 27th May 2013 14:38 Edited at: 27th May 2013 14:43
Hello guys,

so i basically i got this script off this forum which includes Plays trigger with video at start.

I modified it so i added, Plays video at start with a effect, will display a HUD [Name] and it will fadeout a black HUD. With a little help of a forum member.

It is kinda messy, but it works BUT the problem is the Entity logic goes up high and makes it unplayable.

Any ideas for fixes?
Im new to scripting.

This is the script -


-Kumi.
Kumi
15
Years of Service
User Offline
Joined: 12th Jul 2009
Location: Behind You
Posted: 27th May 2013 23:04
Some help would be nice.

-Kumi.
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 27th May 2013 23:50 Edited at: 27th May 2013 23:51
Hi Kumi
Quote: "it works BUT the problem is the Entity logic goes up high and makes it unplayable"

Take a look at this thread. Same problem as yours. When trying to play a video and run an effect it causes problems. Read BlackFox's comments down the thread. You just need to setup your script in the right order.
http://forum.thegamecreators.com/?m=forum_view&t=205410&b=23
best luck
Kumi
15
Years of Service
User Offline
Joined: 12th Jul 2009
Location: Behind You
Posted: 28th May 2013 15:16
Hey ncmako i checked out the thread but still haven't figured a way to fix my script :/

-Kumi.
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 30th May 2013 16:58 Edited at: 30th May 2013 17:08
Kumi, what do you have so far? Most scripts involving a hud have the "hudreset" at the start of the script, as in
not at state=11. Also "setposteffect=TheEffect", is "TheEffect" the actual name of your postprocess effect?
So try setting your hud up first like this

Quote: "Plays video at start with a effect, will display a HUD [Name] and it will fadeout a black HUD"

If I get you right, you want to play a video first then load the level? I think you would be better off if you added the video to your "setuplevel.fpi, play that first then load your game with the effect script.
Add this to your setuplevel.fpi

Then work out your starting hud fade out with effect.
Kumi
15
Years of Service
User Offline
Joined: 12th Jul 2009
Location: Behind You
Posted: 31st May 2013 10:20 Edited at: 31st May 2013 10:26
Quote: "Kumi, what do you have so far?"

The script of what i had far is there.

Yes, TheEffect is the actual name of my post process.
and yes, i want to play a video before the level

I start playing with it, see what i come up with. thanks.

Edited: I tried making hudfadeout and effect like this, but didn't work.



-Kumi.
ncmako
12
Years of Service
User Offline
Joined: 19th Feb 2012
Location: Hendersonville,NC
Posted: 31st May 2013 17:03
Kumi
Just making sure, but you did substitute my image for yours?

I just made a simple black hud 1024x1024 (name mine fadein_hud).
Also you do have "postprocessing" ON in your "setup.ini" right?
The postprocess effect are very picky, mine only work with a slight delay in the scripts. Try this

tested and works for me.
best

Login to post a reply

Server time is: 2024-11-23 13:52:13
Your offset time is: 2024-11-23 13:52:13