Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Candle on Sat 06/05/2006 13:22:50

Title: Undefined token SetFlashlightDarkness
Post by: Candle on Sat 06/05/2006 13:22:50
I'm sorry but I can't seem to remember how to fix this .
Compile Error
---------------------------
There was an error compiling your script. The problem was:
In: 'Room 8 script'
Error (line 8): Undefined token 'SetFlashlightDarkness'


And the code I have loaded.
// script for room: Player enters screen (before fadein)

  // set darkness so dark than you can still see a little bit of the background (+3)
  SetFlashlightDarkness (GetFlashlightMinLightLevel() + 3);
  // set brightness to the brightest value
  SetFlashlightBrightness (GetFlashlightMaxLightLevel());
  // define the outer circle (outside it will be dark)
  SetFlashlightDarknessSize (50);
  // define the inner circle (inside it will be bright)
  SetFlashlightBrightnessSize (20);
  // set this to have the light spot follow mouse movement
  SetFlashlightFollowMouse (1);
}

How do I fix this ?
Title: Re: Undefined token SetFlashlightDarkness
Post by: Scorpiorus on Sat 06/05/2006 15:35:21
I think it's a function from the Flashlight plugin.

Make sure you've added that plugin via the Plugin Manager.
Title: Re: Undefined token SetFlashlightDarkness
Post by: Candle on Sat 06/05/2006 15:37:17
Thankl you I think that was it .