Well, in my game, I have splash screens. The gamma is set to 0, the image is loaded, then via a for next loop, the image fades in, the program waits, image fades out. It has always worked fine, and today it just randomly stopped working. I didn't even touch the code (not that I know of anyways.) I went back and checked everything, is doesn't seem to work. Here's the code:
`Init for menu performance.
sync on : sync rate 30 : backdrop off : hide mouse
`Splash Screens
`first splash
set gamma 0,0,0 : sync
load image "media\gfx\screens\top1.bmp",1
paste image 1,45,130
for c=0 to 255 step 8
r=c
g=c
b=c
set gamma r,g,b : sync
next c
wait 3000
for c=0 to 255 step 8
r=255-c
g=255-c
b=255-c
set gamma r,g,b : sync
next c
delete image 1 : cls : sync
wait 1000
Then it repeats the process but with a second screen. Like I said, it worked fine, and now it doesn't. Anyone see a problem with the code or know why it stopped working?
The only way to prevent all lag in a game is not to make the game.