RoomTint troubles

Started by Cogliostro, Fri 13/05/2016 00:24:51

Previous topic - Next topic

Cogliostro

Okay, I'm having a problem with the RoomTint function.  I had everything shift blue as the main character tries the UV light to check for blood, but when I use the command RoomTint(0,0,0) it does NOT go back to the original color.  As you can see in the BEFORE and AFTER pix below.

BEFORE


AFTER




AGS Editor .NET (Build 3.3.3.0)
32-Bit True Color
Direct3D 9 hardware acceleration
640x400 resolution


GLOBALSCRIPT.ASC
Code: ags

function BluRayOn() {
  int x=0;
  TintScreen(0, 0, x);
  while (x<50) {
    TintScreen(0, 0, x);
    x+=1;
    Wait(1);
  }
  
}

function BluRayOff() {
  int x=50;
  TintScreen(0, 0, x);
  while (x>0) {
    TintScreen(0, 0, x);
    x-=1;
    Wait(1);
  }
}


GLOBALSCRIPT.ASH
Code: ags

import function BluRayOn();
import function BluRayOff();


ROOM CODE
Code: ags
  if (mouse.Mode==eModeFlashligh) {
    BluRayOn();
    player.Say("&284 Running various bandwidths of UV light across the surface to look for either blood or bacteria... and nothing.");  
    BluRayOff();
  }


What the BLAZES did I do wrong?!

- Cogliostro
"First things first, but not necessarily in that order." - Dr. Who

Cogliostro

ARGH!

The last value I passed was RoomTint (1,0,0) and not (0,0,0)

- Cogliostro
"First things first, but not necessarily in that order." - Dr. Who

Mandle

Didn't you mean to say:

Quote from: Cogliostro on Fri 13/05/2016 00:24:51
What in the BLUE BLAZES did I do wrong?!

SMF spam blocked by CleanTalk