Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

fading ... originally "fading into a fog"

Okay, so I made 2 fogs to show a change from sunset (used with screen tone changes) to night. The only problem is that the change is rather drastic. Is there anyway to "fade" into the fog?

Now that I've been pressured convinced to take out my custom fogs I've run once again into the problem of needing to show in real time, on screen (on one map and one map only) the transition between sunset and evening.

Before what I ended up doing was just spamming wait and fog opacity. Obviously, I can't do that now as minute changes/correct changes to screen tones is damn near impossible. So the question has more or less returned. How do I/can I fade into a screentone?

Right now, it's just blinking from sunset to night as if someone flipped a switch.
 
Yeah but that just puts you right into the fog at it's preset setting. Not to worry though I just did a bunch of wait: __ frames followed by a change fog opacity ___ frames ... so basically.

wait 5 frames

change fog opacity to 100

wait 5 frames

change fog opacity to 125

and so on.

Thanks for the help though.
 
Forgive me if I am wrong, but I believe this is what you want.

Image
2urxgd5.png

In order to produce a fade in/out effect on a screen color tone, all you must do is change the amount of frames it will take for it to complete (I believe 20 frames is 1 second).

I apologize if I am not hitting the ball, I am still new to this myself.
 
I think I get it now. The "Change Screen Color Tone" has a max frames of 200.
You want it to take much longer.... (why didn't you say so?)

Use the script command, and enter this...
Code:
 

tone = Tone.new(-204,-204,0,0)

$game_screen.start_tone_change\

(tone,1200)

 

Make sure there is no space after the '\'
1200 is the # of frames. 1200 frames = ~1 minute

Be Well
 
Brewmeister":2pexzg9h said:
I think I get it now. The "Change Screen Color Tone" has a max frames of 200.
You want it to take much longer.... (why didn't you say so?)

Use the script command, and enter this...
Code:
 

tone = Tone.new(-204,-204,0,0)

$game_screen.start_tone_change\

(tone,1200)

 

Make sure there is no space after the '\'
1200 is the # of frames. 1200 frames = ~1 minute

Be Well

Ah, thanks a lot. This seems to get the job done, thanks alot.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top