Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Icey on Tue 19/10/2010 21:13:17

Title: Can the time of day effect the game?
Post by: Icey on Tue 19/10/2010 21:13:17
In my game I would like to have a icon that shows the time of day and I would like the screen to tint.

I basically need to know if there is some code I need to use to at least make the icon change.
(http://pubmembers.webs.com/ex.png)
Icon list.

-Sunny
-sun down
-Night
-Morning sky

Title: Re: Can the time of day effect the game?
Post by: Khris on Tue 19/10/2010 21:23:44
How to get system time:
http://www.adventuregamestudio.co.uk/manual/DateTime.Now.htm

How to change icon:
Take the hour, turn it into a sprite slot and assign it to a non-clickable GUI's BackgroundGraphic.


(Don't get me wrong, but with ambitious projects like yours, how come you have to ask stuff that easy? This is very close to RTFM.)
Btw, you can't link to google mail attachments, we'd have to be logged in as you to see them, I guess. Also, the link in your signature is broken.
Title: Re: Can the time of day effect the game?
Post by: Icey on Tue 19/10/2010 21:54:21
Ok I will check this out. And I fixed them both.

P.S. I know this is easy stuff That I should know. But I am still learning a lot, but I currently know just enough to work on a game that is basic.
Title: Re: Can the time of day effect the game?
Post by: Matti on Tue 19/10/2010 22:42:42
Also, your signature is quite annoying.
Title: Re: Can the time of day effect the game?
Post by: Gilbert on Wed 20/10/2010 01:45:30
Quote from: Khris on Tue 19/10/2010 21:23:44
(Don't get me wrong, but with ambitious projects like yours, how come you have to ask stuff that easy? This is very close to RTFM.)
Quote from: Mr. Matti on Tue 19/10/2010 22:42:42
Also, your signature is quite annoying.

Stick to topic. What was asked here fit this section fine. Take your critics elsewhere. :P