Changing a Game from DAY to NIGHT
ozboybrian
PRO Posts: 2,102
Any tricks to this?
Writing up script and features for an RPG I hope to start at the end of this year.
Already have art being prototyped but It will be a big RPG. I'm thinking easily 200mb. Quite possible a gig.
Will take over a year to make working up to 12 hours a day.
So obviously it would be a big time save if there was some method to make it look like it's night time without losing all the graphics.
Could just have it set as day all the time and just have somethings as night for story etc. But that could be boring.
Writing up script and features for an RPG I hope to start at the end of this year.
Already have art being prototyped but It will be a big RPG. I'm thinking easily 200mb. Quite possible a gig.
Will take over a year to make working up to 12 hours a day.
So obviously it would be a big time save if there was some method to make it look like it's night time without losing all the graphics.
Could just have it set as day all the time and just have somethings as night for story etc. But that could be boring.
Comments
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
LMAO )
@ozboybrian
There are different ways that I am thinking that could work. Create triggers throughout the game that would fade in the night scene then fade it our. Or maybe a timer that is set really big that after the timer hits zero to fade in the night scene, then the same to fade it out over time. Not sure if those are kind of what you are looking for but thats what came to mind!
I guess there's no way around it! Just gonna be a lot of scenes is all |)
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
I change one of my scenes from day to night by changing the red, green and blue colours of my background actor (no image change). Here's what I do:
When sunset condition is true:
interpolate (background actor) red to 1 over 1.5s
interpolate (background actor) green to 0.51 over 1.5s
interpolate (background actor) blue to 0.23 over 1.5s
Then timer after 1.5 seconds:
interpolate (background actor) red to 0 over 0.5s
interpolate (background actor) green to 0.03 over 0.5s
interpolate (background actor) blue to 0.28 over 0.5s
For sunrise: interpolate red, green and blue back to 1 over 1.5s
What this does is give a nice natural fade from day to night, without need to change background images (note it might not be suitable with all images), but the overall result as fryingbacon has mentioned is to give a blue hue effect which simulates night. You can of course adjust the numbers to fine tune it how you want it.
Give it a whirl and see if it helps
SlickZero this for that RPG i'm making. Remember you said "What Hentai?" as a joke when I sent you that image lol.
then when you want it to become night just interpolate its alpha to 0.7 or something