Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Fadeing Effects Randomly Stopped Working

Author
Message
CompuWiz
22
Years of Service
User Offline
Joined: 21st Nov 2002
Location:
Posted: 2nd Mar 2003 08:45
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:



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.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 2nd Mar 2003 14:45
Running in full screen exclusive mode, your code works fine for me. Sure you're not running in a Window or something?

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 2nd Mar 2003 14:46
You could tidy the code up a bit by the following simple change:

for c=0 to 255 step 8
set gamma c,c,c : sync
next c

Much shorter

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
Zach
21
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: Ms, USA
Posted: 3rd Mar 2003 01:05
here's the way i fade in and out.. its a little different and it runs in a sub .. but it works every time

just put it at the end of your project and type gosub when you want to use it... simple


vice versa for fade out...

Tupelo, Ms

Login to post a reply

Server time is: 2024-11-24 04:39:54
Your offset time is: 2024-11-24 04:39:54