Help - Search - Members - Calendar
Full Version: Day - Night Engine
Game Maker Community > Games > Game Maker Creations > Open Source
Pages: 1, 2
manuel777
Well... the title says it, a day/night engine, with evening, quite easy to midify

> Gm6 version <




DOWNLOAD NEW VERSION
doesnt make the older version obsolete!, its just a different way to achieve the same day/night effect, use the one that fits your needs

For a better exxplanation of the new code, go HERE
ATOGAMES
nice lmaosmiley.gif i wish id finished mine sooner cause now everyone would think im copycat y'know ph34r.gif
pepolshet
Awesome!
Credit?
afsnyder
Hopefully this is good! I need one. Do you need credit?
the Raven
Oh, man. you really have something here!!
I cant use it though...I promised never to use engines that I didn't make :'(
You did a very nice job. good job son!
Potnop
Who did you promise that to? That's not very smart... Using other people's work saves time and you can learn from it.
eafg2
I think that it's a bit weird, but thats me.
gioscape
How do you change the speed at which the time goes? Ive been trying but i cant figure it out.
TheReaperGrim
The Link is Broken

EDIT: Soz my laptop just doesnt like the link. But i got it!
TheReaperGrim
How can i slow the clock down to real time? and how can i stop it going red?
manuel777
Wow, i didnt think this will get so many attention...

QUOTE (pepolshet @ Jul 24 2008, 12:39 AM) *
Awesome!
Credit?


yeah, its the best, besides its not too much work to write "day/night engine by manuel777" a you games's topic snitch.gif

QUOTE (TheReaperGrim @ Jul 27 2008, 10:13 AM) *
How can i slow the clock down to real time? and how can i stop it going red?


In the create event:
CODE
hour = date_get_hour(date_current_datetime())
minu = date_get_minute(date_current_datetime())
sec = date_get_second(date_current_datetime())
alarm[0] = room_speed


add an alarm[0] event:

CODE
hour = date_get_hour(date_current_datetime())
minu = date_get_minute(date_current_datetime())
sec = date_get_second(date_current_datetime())
alarm[0] = room_speed


and in the step avent change
CODE
minu += 2

for
CODE
sec += 0.04


thats what i do wink1.gif

to stop going red add:
CODE
red = 0

at the end of the step event biggrin.gif
MadProductions119
PLEASE post the gm.6 version!
lukesterspy
QUOTE (MadProductions119 @ Jul 28 2008, 09:49 AM) *
PLEASE post the gm.6 version!

Get gm7...even if you like to use gm6, you can have them both installed on the same computer, and if your gm6 is registered, gm7 will be free.
MadProductions119
LOL I run windows 98 I cant even run gm7
morno
whit the Gm 6 ver of Game Maker you can stop GM decompoiler. (tho i have both GM 6 and 7
manuel777
QUOTE (morno @ Aug 1 2008, 12:27 PM) *
whit the Gm 6 ver of Game Maker you can stop GM decompoiler. (tho i have both GM 6 and 7


really?? i didnt know that... is there any GM7 to GM6 converter?? i cant copy and paste 3000 codes XD (PM me, offtopic)
duelboy
can you make a video torturial how to add it to a game. im very new to game maker and ill really need this, its awesome!
manuel777
QUOTE (duelboy @ Aug 2 2008, 03:06 PM) *
can you make a video torturial how to add it to a game. im very new to game maker and ill really need this, its awesome!


A video tutorial? damnit, u r a nood lmaosmiley.gif (no effense hehe), just merge it in your game, change the depth from the merged object, add it in the room and Voilá! its easy, even for a noob... (you dont have to code practically anything, just delete the draw_text() function in the draw event, if you want)
duelboy
QUOTE (manuel777 @ Aug 2 2008, 06:18 PM) *
QUOTE (duelboy @ Aug 2 2008, 03:06 PM) *
can you make a video torturial how to add it to a game. im very new to game maker and ill really need this, its awesome!


A video tutorial? damnit, u r a nood lmaosmiley.gif (no effense hehe), just merge it in your game, change the depth from the merged object, add it in the room and Voilá! its easy, even for a noob... (you dont have to code practically anything, just delete the draw_text() function in the draw event, if you want)


dont get it :S. isnt it just to insert a object in my game as in the day and night engine that got the same functions and then also add the same excute code and then add the object to my lvl ? cuz that dosent work
manuel777
use the "merge" option in the game maker's menu... so you dont have to copy anything!
manuel777
ive uploaded tha gm6 version and added it to the first post... enjoy!
6th hokage naruto15
AWSOME!!!!!!!!!!ive been looking for something like this for i dont know how long!!!!!!!

edit:how do i get it so that sprites(npc's,playerc,etc.)also get the same shading and all that?
manuel777
QUOTE (6th hokage naruto15 @ Aug 22 2008, 06:17 PM) *
AWSOME!!!!!!!!!!ive been looking for something like this for i dont know how long!!!!!!!

edit:how do i get it so that sprites(npc's,playerc,etc.)also get the same shading and all that?


change the depth of the controller, below the players depth
Fede-lasse
I made this kind of thing, too, except the only thing missing was drawing that black rectangle with the correct alpha value. Oh well.
manuel777
QUOTE (Fede-lasse @ Aug 27 2008, 12:39 PM) *
I made this kind of thing, too, except the only thing missing was drawing that black rectangle with the correct alpha value. Oh well.


yeah, it isnt too complicated to make any way (there are many posts like yours)
Henley
hey great work mate this is sweet as!
manuel777
QUOTE (Henley @ Sep 17 2008, 03:03 AM) *
hey great work mate this is sweet as!


thanx biggrin.gif
Khanor
how would i make it every minute it will go up 1 hour :S

and

make it follow real time
durge69
lolz, i am a noob, i was just about to post a complaint because i couldn't get it to work in my new game, but it was not because it was faulty, it waas because my new game as a "Z" axis...
manuel777
QUOTE (Khanor @ Oct 9 2008, 11:39 PM) *
how would i make it every minute it will go up 1 hour :S

and

make it follow real time


mmmm... didnt i explaine this before? mellow.gif
Hellopayton
EDIT:
Nevermind, I've got it now.

(Sorry if this is a bump, I opened the link from an e-mail)

How do I make it follow actual minutes, seconds and hours? I want actual time in my game.
<WOG>
thanks this helped me alot,


but how do you make the night/day apply to objects??
manuel777
QUOTE (<WOG> @ Oct 25 2008, 03:44 PM) *
thanks this helped me alot,


but how do you make the night/day apply to objects??


duh?? mellow.gif what do you mean??
<WOG>
obviously i mean that objects in my game dont get darker and lighter as like the background does, and i want to know how to fix this problem.
manuel777
change the depth from the engine controller, over the objects
<WOG>
alright


thank you
Poris
Lengendarious!
manuel777
QUOTE (Poris @ Nov 6 2008, 09:07 PM) *
Lengendarious!

unsure.gif



lmaosmiley.gif
manuel777
Ok im reauploading every single file i posted, so heres the GM6 ONLY, the gmk is useless if you have the gm6 right below tongue.gif
SilentxxBunny
Just wondering... What sort of damage does this do to your FPS? I wanted to use it for my upcoming MMORPG but if it has a drastic effect on FPS I might not want to incorporate it. I ran some tests with it today and my FPS dropped below 30 for the first time ever.

sleep.gif
manuel777
QUOTE (SilentxxBunny @ Jan 17 2009, 11:44 PM) *
Just wondering... What sort of damage does this do to your FPS? I wanted to use it for my upcoming MMORPG but if it has a drastic effect on FPS I might not want to incorporate it. I ran some tests with it today and my FPS dropped below 30 for the first time ever.

sleep.gif

You shouldnt have ANY fps damage... it uses math functions and a ( stupidly simple ) draw rectangle function.... nothing else sad.gif

edit: i just tested and the max FPS i get is 500...
SilentxxBunny
QUOTE (manuel777 @ Jan 17 2009, 10:13 PM) *
QUOTE (SilentxxBunny @ Jan 17 2009, 11:44 PM) *
Just wondering... What sort of damage does this do to your FPS? I wanted to use it for my upcoming MMORPG but if it has a drastic effect on FPS I might not want to incorporate it. I ran some tests with it today and my FPS dropped below 30 for the first time ever.

sleep.gif

You shouldnt have ANY fps damage... it uses math functions and a ( stupidly simple ) draw rectangle function.... nothing else sad.gif

edit: i just tested and the max FPS i get is 500...

Hmm. This concerns me. We are completely re-coding our engine right now. So we will see what it does to the new (much more powerful) engine. Perhaps the lag was caused by another mistake in the coding. Possibly our emoticon system. I will keep you updated. Thanks by the way!
Schyler
Good engine, not much lag here. Im sure it can't be from your emoticon system. How much CPU can that take?

EDIT: Unless ofcourse its ineffecently coded.
SilentxxBunny
QUOTE (Schyler @ Jan 25 2009, 10:17 PM) *
Good engine, not much lag here. Im sure it can't be from your emoticon system. How much CPU can that take?

Note that I said "perhaps" another mistake in the coding. Its most likely that our engine was just coded poorly overall. Thats why that we are doing a total re-write of it. I was just trying to pass blame on the emoticons because we added them at about the same time.

whistle.gif

Schyler
Love your sig =P
manuel777
QUOTE (Schyler @ Jan 26 2009, 12:27 AM) *
Love your sig =P

yeah, me too...

my engine CANT be the cause of the lag, its just a stupid math code and a draw rectangle function, if that ever has a fps damage, then theres something ive seriously missed all of this years
SilentxxBunny
QUOTE (manuel777 @ Jan 29 2009, 09:50 PM) *
QUOTE (Schyler @ Jan 26 2009, 12:27 AM) *
Love your sig =P

yeah, me too...

my engine CANT be the cause of the lag, its just a stupid math code and a draw rectangle function, if that ever has a fps damage, then theres something ive seriously missed all of this years

You were right. It was a mistake on my end. Thank you for replying though.
manuel777
QUOTE (SilentxxBunny @ Jan 29 2009, 11:53 PM) *
You were right. It was a mistake on my end. Thank you for replying though.

Good to know happy.gif
Sk8erFreek
This was just what i was looking for!
Thnx! smile.gif
8/10

Probably a noob question, but how do i get the time to stay in my view?
avivasban
you can do slow time?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.