The Daily Click ::. Forums ::. Klik Coding Help ::. I Developed a (near)Perfect Day Night engine!
 

Post Reply  Post Oekaki 
 

Posted By Message

Ryan▫S



Registered
  25/10/2003
Points
  161
19th March, 2004 at 05:51:30 -

This engine involves:

- Realtime Clock! (if it is 3:04pm in the real world, it is in the engine too!)
- 5:00am - 7:00pm = Dawn
- 7:00am - 5:00pm = Daylight
- 5:00pm - 7:00pm = Dusk
- 7:00pm - 5:00am = Night
- Moon and sun move accordingly every hour
- Three Light Degress - Full sun (day), half sun (dawn,dusk) and no sun (night)
- TimeWarp Protection, No turning back! (without screwing urself over)
- Remembers the last time u played and Calculates difference
- Events could happen at certain times

I'm using this in an upcoming game, so you wont see the engine until then!

 
Gah!

Ashman

Possibly Insane

Registered
  12/06/2002
Points
  3974
19th March, 2004 at 06:57:33 -

We all knew that. The problem is the light degress is difficult to do without making the entire move in jerky, crap slowmo. That's just the obvious stuff.

 
Show me the power child,
I'd like to say,
That I'm down on my knees today,
Gives me the butterflies,
Gives me away,
'Til I'm up on my feet again,
I'm feeling outshined.


"Outshined" - SoundGarden

Pkeod

Oontz Oontz Oontz

Registered
  19/11/2002
Points
  93

VIP Member
19th March, 2004 at 12:42:53 -

What if your in outer space on a jet pack!?
huh! what?

 
Faerie Solitaire - Get it now:

http://www.create-games.com/download.asp?id=7792

Rycon



Registered
  20/09/2002
Points
  996
19th March, 2004 at 17:33:25 -

Yeah or if you live in alaska and it never gets light/dark. (Depending on month) Yeah now what!

 
We are the music makers, we are the dreamers of dreams...

AS Filipowski



Registered
  29/02/2004
Points
  444
21st March, 2004 at 12:49:21 -

You could just have 3 frames;
Morning, Day and Night.

Maybe if you had some place saving inis, and then just reboot the level. This isnt the best way, but its better then having active overlappers

 
I do not have a signature of my own

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
21st March, 2004 at 12:53:23 -

Dumb suggestion: If you're in some town people won't leave the lights off when it's dark. The light should also shine out of the windows. It could be a nice idea to use multiple frames, except that you had to store ALL positions of the frames and directions and stuff. Because if you just stuck an active object over the windows with lights it would be darkened.

 
a/n

AS Filipowski



Registered
  29/02/2004
Points
  444
21st March, 2004 at 12:54:56 -

Those lights should take near enough as the whole screen of light would. Possibly a few transparent active objects, not that much effort required.

 
I do not have a signature of my own
   

Post Reply



 



Advertisement

Worth A Click