- Home /
How to make flashing lights faster?
Hi all, a fairly easy question I believe but I need a script reference for a flashing light. I have this so far but it is not flashing nearly fast enough:
mgLight.enabled = !mgLight.enabled;
I cant put it into a function start()
either as I am calling the light to flash when a button is being pressed. I was thinking about making it flash when an int is at a certain value (i.e. if int lightflash is 1 it flashes, if it is 0 it does not). Obviously i cannot implement this using the yield WaitForSeconds(timer);
as that requires function start to work properly. Any ideas about how I could go about this? Regards
Answer by Eric5h5 · Apr 14, 2011 at 06:39 PM
WaitForSeconds doesn't require Start. Just make a function that does this, and call the function when the button is pressed.
Your answer
Follow this Question
Related Questions
Flashes of light 0 Answers
Enable scripts on a directional light 2 Answers
Directionnal light flashing 0 Answers
lighter and faster application (android) - advices 1 Answer
Lights only sometimes working 1 Answer