Post by IsmAvatar on Mar 7, 2004 15:20:26 GMT -5
Create event:
Step event:
Don't forget to change the variable "_current_hour" every time the game experiences an hour (alarms work best), and when _current_hour = 24, set _current_hour = 0
Credit is optional. Change at will. Requires 'Exclusive Graphics Mode' to be turned on.
I will help anyone who is having trouble understanding it, or is trying to modify it.
Please note, this code can be used for true time simply be removing the first _ before every _current_hour (making it current_hour), and commenting out (or removing) the line of code that sets _current_hour = 0
Enjoy
The better the graphics card the better the results.
_current_hour = 0
hourhit = _current_hour
screen_gamma(-.7,-.7,-.7)
if _current_hour = 7 { screen_gamma(-.6,-.6,-.6) }
if _current_hour = 8 { screen_gamma(-.5,-.5,-.5) }
if _current_hour >= 9 { screen_gamma(0,0,0) }
if _current_hour = 18 { screen_gamma(-.5,-.5,-.5) }
if _current_hour = 19 { screen_gamma(-.6,-.6,-.6) }
if _current_hour >= 20 { screen_gamma(-.7,-.7,-.7) }
Step event:
if hourhit = current_hour { exit }
if current_hour = 18 || current_hour = 19 || current_hour = 20
|| current_hour = 7 || current_hour = 8 || current_hour = 9 {
hourhit = current_hour
}
if _current_hour = 18 { screen_gamma(-.5,-.5,-.5) }
if _current_hour = 19 { screen_gamma(-.6,-.6,-.6) }
if _current_hour = 20 { screen_gamma(-.7,-.7,-.7) }
if _current_hour = 7 { screen_gamma(-.6,-.6,-.6) }
if _current_hour = 8 { screen_gamma(-.5,-.5,-.5) }
if _current_hour = 9 { screen_gamma(0.0,0.0,0.0) }
Don't forget to change the variable "_current_hour" every time the game experiences an hour (alarms work best), and when _current_hour = 24, set _current_hour = 0
Credit is optional. Change at will. Requires 'Exclusive Graphics Mode' to be turned on.
I will help anyone who is having trouble understanding it, or is trying to modify it.
Please note, this code can be used for true time simply be removing the first _ before every _current_hour (making it current_hour), and commenting out (or removing) the line of code that sets _current_hour = 0
Enjoy
The better the graphics card the better the results.