Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: onizuka666 on Thu 03/04/2014 14:02:26

Title: background animation triggered via event
Post by: onizuka666 on Thu 03/04/2014 14:02:26
Hello guys,

I hope anyone can help me with my problem since it's a bit more complicated...

I have a room with three Backgrounds. One is the main Background which sets my Szene into darkness. The other two Backgrounds are meant to light the room after switching on the light.
The Thing is one of my lamps in this room is defekt and should flicker oddly. To simulate this, I want  the Background to change between two different Backgroundframes after the light is switched on in a certain rythm.

How can I do this? How are the "on-off" Loops introduced?
Does anybody have an idea how I can do this?
I also want the flickering event to stop after the light is switched off again, meaning the same hotspot should Trigger all this. or maybe it is done via repExecute function...

Thank's in advance for your help!
Title: Re: background animation triggered via event
Post by: selmiak on Thu 03/04/2014 15:02:11
I'd just use an object for the flickering light and animate the object with 2 different frames, maybe make that 4 or more frames in the view with different timing.