The Daily Click ::. Forums ::. Klik Coding Help ::. Day time night time logic for platformer with progress map.(and INI files)
 

Post Reply  Post Oekaki 
 

Posted By Message

renneF



Registered
  02/08/2003
Points
  672
17th January, 2004 at 18:18:18 -

please do

 
Image

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
17th January, 2004 at 19:42:23 -

what about:

[level 1]
0,0 = 1
0,1 = 2
0,2 = 3
1,0 = 4
1,1 = 5
1,1 = 6
...
3,3 = 10

etc

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
17th January, 2004 at 21:41:19 -

Easiest method?
Make a counter that tells what time of the day it is. from 0 to 23 (11 PM). When the counter reaches 24, set it to 0. You can also do another minute counter if you want.

Make a large full-screen black active object and set it to enough transparency so that it looks like night. We'll call this number X.

Set an event so that when counter = 0, set active object transparency to X.

Then just adjust the transparency accordingly to the time of day. Sunrise and sunset times can really vary.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Deleted User
18th January, 2004 at 00:10:30 -

Muz's method would work, but MMF would slow down horribly.
I actually know an awesome way of making night and day systems, but I'm not going to tell about it here. It changes from night to day, and viceversa in runtime, everything darkens, lightens, etc.

 

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
18th January, 2004 at 00:22:59 -

Sorry, forgot to mention that. I don't think it really bothers MMF 1.5, since most of the other 'really slow' stuff seems a lot faster in the new MMF. The main problem would be that your file size could increase significantly, especially if you're using 16 M colors, have a large screen resolution, and use it on multiple frames.

Alonso, why not make a tutorial for your style? You could gain a little fame from everyone who uses it...

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

Airflow

imafirinmahlazr

Registered
  24/09/2003
Points
  -197

VIP MemberSonic SpeedSnow Cloud!Computer
18th January, 2004 at 05:14:50 -

Yipeeee! Muz saves day. - I'll do just that! TGF style.

And I can set the direction of the filter according
to the day to create fog, sunset or whatever!

Authough I don't under stand everyones explanation of
the Ini solution, .. Or how to set a objects transparency effect in
the events,

Thanks All For Your Help!


 
n/a

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
18th January, 2004 at 05:18:35 -

You're using TGF? My idea was meant to work with MMF 1.5. TGF's gonna run reeaaaaallly slow if you go with my idea.

Well, maybe it won't. Maybe that was anti-aliasing, not transparency.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

cake



Registered
  13/12/2002
Points
  1173
18th January, 2004 at 05:20:33 -

Article is at:
http://www.create-games.com/article.asp?id=1262

 
n/a

Airflow

imafirinmahlazr

Registered
  24/09/2003
Points
  -197

VIP MemberSonic SpeedSnow Cloud!Computer
22nd January, 2004 at 02:46:11 -

Yea, I am using TGF.

Time for the lazy way out and just paste an
active object over the playfield.
I can make different objects with different transparency
rates for different times of the day.
- Or fork out cash for MMF.

But I'ts cleared up a few q's that I needed to know.

 
n/a

Deleted User
1st June, 2004 at 07:04:44 -

I don't want to gain fame. Especially here, in DC.

 

Crystal Clear (H.E.S)

Possibly Insane

Registered
  06/10/2002
Points
  2548
1st June, 2004 at 07:34:40 -

Lol, ill have a go at a Day/Night system maybe later and see what i can come up with.

 
HES homepage:
http://www.distinctiv-efair.com/heretic/studios
Crystal Clear Productions: http://www.distinctiv-efair.com/heretic/crystalclear

Keatonian



Registered
  15/07/2002
Points
  571
1st June, 2004 at 20:07:54 -

I still use TGF. Mainly because I have not the
free money to spend on mmf1.5, or when I do, I'll
want mmf2.

 
-Above post is ancient and probably irrelevant-

An old account of mine, recently cleared out. It's a blast to the past, the age was marked as 14 when I found it. If you know where to look, you can track me. Au revoir.
   

Post Reply



 



Advertisement

Worth A Click