Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sepia Color Screen
TrackStep Offline
Junior Member

Posts: 1
Threads: 1
Joined: May 2015
Reputation: 0
#1
Wink  Sepia Color Screen

Hey guys! Im kinda new to the scripting stuff so, i needed some help.

Basically, I have it so when you collide with script area, it plays a cutting/roar noise, and turns the screen dark red. I also have it so that when you walk into the next script area, the screen goes back to normal.

The red and noise works, but the return to normal doesn't. It is not a problem with the area collide function, because I tested it with playing music when I enter the area and it works. But it doesn't work when I use the Fade Screen function. Any help suggestions

Thanks in advanceRolleyes
05-10-2015, 02:35 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: Sepia Color Screen

You have to use the same sepia script line again.

FadeSepiaColorTo(float afAmount, float afSpeed);
Makes the screen go dark red.

afAmount - intensity (default: 0)
afSpeed - time in seconds until full effect

Notice that is has 'afAmount'. If you want it to go away, set it to 0.

Trying is the first step to success.
05-10-2015, 03:00 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#3
RE: Sepia Color Screen

FadeSepiaColorTo is pretty interesting. The FadeTo Sepia can be done, usually instantly, however the fading back, depending on how long it has been since the first FadeSepiaColorTo could take ages to actually accomplish. It's one issue I had quite a while ago.

Like Flawless said, you need two seperate FadeSepiaColorTo's. One with the afAmount = 1 (the first one, when the roar occurs), and the second with afAmount = 0 (to reset the screen).

Discord: Romulator#0001
[Image: 3f6f01a904.png]
05-10-2015, 06:42 AM
Find




Users browsing this thread: 1 Guest(s)