problem with room_Load

Started by HandsFree, Sun 01/02/2015 15:59:14

Previous topic - Next topic

HandsFree

I'm using the flashlight module and I want the room to be dark at the start.
So I have in room_Load
Code: ags

function room_Load()
{
  Flashlight.Radius = 0.0;
  Flashlight.Transparency = 1;
  Flashlight.Enabled = true;
}

But the room starts lit and then AFTER fadein goes dark.
When I add a Wait(20); to room_Load it works the way I want it. But then I get an entry in the warnings log:
(in room 27): Wait() was used in Player Enters Screen - use Enters Screen After Fadein instead

Why is there a warning when it works anyway? How do I start in a dark room without warning?

thanks

SMF spam blocked by CleanTalk