Undefined token SetFlashlightDarkness

Started by Candle, Sat 06/05/2006 13:22:50

Previous topic - Next topic

Candle

I'm sorry but I can't seem to remember how to fix this .
Code: ags
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.
Code: ags
 // 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 ?

Scorpiorus

I think it's a function from the Flashlight plugin.

Make sure you've added that plugin via the Plugin Manager.

Candle


SMF spam blocked by CleanTalk