Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Mehrdad on Mon 03/08/2009 15:27:45

Title: Make night and time pass
Post by: Mehrdad on Mon 03/08/2009 15:27:45
Hi
1)I want make night(step by step and slowly with time pass).is it possible adjust  brightness and contrast?(All scene(BGR.FGR.OBJ.PLAYER...)
2)how do i get time pass.like Darkseed game?

I use 640*480*16bit
Title: Re: Make night and time pass
Post by: Mazoliin on Mon 03/08/2009 16:33:11
A simpel way is to make a gui and slowly decrease the transparacy for it, don't know how good it would look.
Title: Re: Make night and time pass
Post by: on Mon 03/08/2009 17:21:04
Another easy way would be to actually DRAW each location in either two (day/night) or three, maybe four "time frames", and then use ChangeBackground. That gives you a lot more control about how a location looks, though Maz has a point with his idea too- it's much faster to implement and can look good too.

To make time pass, well, you can also chose from a wide range of options, and using a TIMER (as described in the manual) would be among them. Alternatively, you can also use certain events in the game to set the time yourself (which would ruin a realistic day/night circle).
Title: Re: Make night and time pass
Post by: NsMn on Mon 03/08/2009 17:32:25
If I'm not very much mistaken, there's a calender module by Rocco, which can do such time-effects.
Title: Re: Make night and time pass
Post by: Mehrdad on Tue 04/08/2009 15:18:22
Quote from: Mazoliin on Mon 03/08/2009 16:33:11
A simpel way is to make a gui and slowly decrease the transparacy for it, don't know how good it would look.

sorry i dont understand ....i think this answer is not for my question.please explain more for me.thank you.

Quote from: Ghost on Mon 03/08/2009 17:21:04
Another easy way would be to actually DRAW each location in either two (day/night) or three, maybe four "time frames", and then use ChangeBackground. That gives you a lot more control about how a location looks, though Maz has a point with his idea too- it's much faster to implement and can look good too.

To make time pass, well, you can also chose from a wide range of options, and using a TIMER (as described in the manual) would be among them. Alternatively, you can also use certain events in the game to set the time yourself (which would ruin a realistic day/night circle).

thanks.i think it before.but i must draw many background...is any suggestion?
thank you very much for time pass
Quote from: NsMn on Mon 03/08/2009 17:32:25
If I'm not very much mistaken, there's a calender module by Rocco, which can do such time-effects.

I must search.......thanks
Title: Re: Make night and time pass
Post by: Matti on Tue 04/08/2009 15:24:59
Quote from: MEHRDAD on Tue 04/08/2009 15:18:22
Quote from: Mazoliin on Mon 03/08/2009 16:33:11
A simpel way is to make a gui and slowly decrease the transparacy for it, don't know how good it would look.

sorry i dont understand ....i think this answer is not for my question.please explain more for me.thank you.

It was an answer to your question. You can make a (black) GUI covering the whole screen and change its transparency according to the daytime.
Title: Re: Make night and time pass
Post by: Mehrdad on Tue 04/08/2009 15:32:12
Quote from: Mr Matti on Tue 04/08/2009 15:24:59
Quote from: MEHRDAD on Tue 04/08/2009 15:18:22
Quote from: Mazoliin on Mon 03/08/2009 16:33:11
A simpel way is to make a gui and slowly decrease the transparacy for it, don't know how good it would look.

sorry i dont understand ....i think this answer is not for my question.please explain more for me.thank you.

It was an answer to your question. You can make a (black) GUI covering the whole screen and change its transparency according to the daytime.

Oh yes....I just do understand now.Thanks a lot 'Mazoliin' and '  Mr Matti '...I try it.
Title: Re: Make night and time pass
Post by: on Tue 04/08/2009 17:28:12
Quote from: MEHRDAD on Tue 04/08/2009 15:18:22
thanks.i think it before.but i must draw many background...is any suggestion?

Depending on your graphics, a location really doesn't need to look very different- maybe you can simply change the sky, replace the sun with a moon, and make the landscape a bit darker. So you will really just draw a background once, make some changes, and save it again. Not too complicated.
I don't know what paint program you're using, but several of them allow you to adjust the brightness and the tint of an image. Make a background darker and add a slight blue tint, and use that as a working base.
Title: Re: Make night and time pass
Post by: Lt. Smash on Tue 04/08/2009 20:46:58
the best would be if you make 3 or more backgrounds (light to dark) and then fade between them (using transparency settings).
Title: Re: Make night and time pass
Post by: .M.M. on Tue 04/08/2009 21:50:30
Quote
Another easy way would be to actually DRAW each location in either two (day/night) or three, maybe four "time frames", and then use ChangeBackground.
But this won´t affect object and characters.
Title: Re: Make night and time pass
Post by: Mehrdad on Wed 05/08/2009 15:12:01
Ghost:it is good way for make Night/day. but its dont affect on main player.
since i am in mode 16bit.but i use 256 color for my game.I use Dpaint 4 ( with Winuae amiga emulator) for sprites and objects and Backgrounds.this software is free.
Title: Re: Make night and time pass
Post by: Cpt Ezz on Wed 05/08/2009 23:04:02
i could just be talking crap here but i thought there was a function in the room proprties that darkens it
i think it is room lighting