ID:268862
Dec 9 2004, 11:44 am
|
|
I need coding for seasons, like days , months , winter , summer , spring & fall like what WB has on Harvest Moon: Trinity Ranch but for my Zelda game & DBZ game
|
In response to Unknown Person
|
|
ok and on the weather part i just put the weather system demo i fount somehow with it , hanks for your help
|
In response to Contract Jack
|
|
How would i make it when it is season 1 the grass is bright green then is season 2 the grass is dark green like icon changing a world thing
var |
In response to Contract Jack
|
|
one way is
for(var/turf/grass/E in world) this would make massive lag i think when it changes all of them and is based on the turf being called grass. anyone know a better way ? |
No, I'm not going to give you a program for seasons, but I will help you.
What you need are some global variables which tell the time.
When the world starts, you want to start a timer which starts everything up, basically. Depending on how long you want one day to be, it will be different.
This is one very simple time-keeping procedure, which is untested. Please do not copy/paste this unless you understand how every goes, and good luck.
If you want to save the time from the last time the server was open, you can save the variables to a savefile.
~~> Dragon Lord
PS: Don't request coding on the forums, it is rude and annoying.