Anybody know a way I can get the screen to flash white without making a huge transparent active object the size of the screen? I want the effect to occurn when a bomb explodes.
Well you can use the Palette Object, with that you can lighten the screen or darken it, as well as other effects. But it doesn't seem to work under Windows XP. For the lightning in my game Zombies Now, I had to use the huge transparent object method cos I have Windows XP, although the Palette object worked fine in Windows ME. If it's only displayed for a split second, then it won't slow the game down.
Yeah, i made a program with the Pallete object. it was called Disco Desktop. it was a program where you could create flashy colors. but the big problem was, most had XP so that kinda sucked. youre probably better off not using it.
i have just done a flash in my game. but a difficult way of doing a flash but not an active is to make the background white and make onbjecst invisble for about 0.05 milliseconds but thats rubbish.
i dont know how to do this without making the flash an active object.
Hey good news, the CNC version works. I put it in the game and it looks very nice! Too bad i cant get the screen to flash orange.... when i say to flash red, it turns purple.
You shouldn't use the pallette object. It is so incompatible with peoples systems, using it in a game would cause all sorts of problems. Just go with the object, except instead of making it invisible, destroy it at the start of the frame, and create it when you need it. That way it doesn't slow down the game at all.
If you want it to flash continually, make a big white object then theres an event under visibility, called flash object.
if you want it to flash once then just create a big white object create it when you want the bomb to explode and delete a short time after, make a counter that counts down the period of time you want the object to stay on screen, when it hits 0, delete the object.
Lew is right about the pallette, the object verion is much more stable.
just temporarily move the camera to the middle of a large white block, then move it back to where it was before
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
I'd have to agree with Kris's solution. Just have a white quick-background the same size of your screen, put an invisible active object in the middle of it, and tell the game to 'center display on the active', until a counter gets to 0 (have it set that counter to 4 or so and tell it to subtract one every MMF loop). As long as the counter is equal to or less than 0, have it center the screen on your player.