I'm trying to do a quick flash of white that covers the entire screen...
My solution so far has been to make a layer that is all white and turn it to invisible by default.
Then, when I need it to flash I turn it on...
Turning it back off is the problem.
I want it to stay on for just a moment -- 25 or 50 milliseconds. The way I have it now (totally lame) is I have an Always event running every 25 milliseconds that just turns the layer invisible. This sort of works, but sometime the flash doesn't show up (clearly a timing issue).
I realize this is clearly not the correct way to do this -- and my guess is the answer to this is really simple and obvious -- but for the life of me, I can't figure out how it's supposed to work... Is there the equivalent of a "turn on/wait 25 milliseconds/then turn off." command?
Also, if this runs at 60 frames a second, aren't I going to get different length flashes than if I'm running at 85 frames a second?