Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: raindropmemory on Thu 26/04/2007 08:27:10

Title: Can AGS make save point with day&night things like in Harvestmoon?
Post by: raindropmemory on Thu 26/04/2007 08:27:10
Hello, I'm very new to AGS. I did some tutorial work and know some big picture of what adventure game like. and now I begin to think of my own game!' :-*

I have some question to ask all expert here ;D


*1. It is possible to make time changing?(like day to night, etc)

*2. Well, is it possible for me to create save point , not the save menu in GUI, for player to save in each day before player go to bed (like in Harvestmoon) and then day changes and begin the next day?

Thank you!! :D
Title: Re: Can AGS make save point with day&night things like in Harvestmoon?
Post by: Dan_N on Thu 26/04/2007 08:40:34
Now, regarding point #1, I've looked around the manual for maybe a RoomBackground.AnimateToFrame(x) or something along the like, but I couldn't find anything, so, maybe you could, for instance, redirect the player to room 2, instead of room 1, where room 1 would be his bedroom during the day, and room 2 would be his bedroom during the night. The rest, just depends on global variables, say Hour and Minute, and then it's just a matter of if functions...


if (Hour>=18) and (Hour<=7) { cEgo.ChangeRoom(2); }
else
{ cEgo.ChangeRoom(1); }

If the player changes the room.


if (Hour>=18) and (Hour<=7) and (cEgo.Room==1) { cEgo.ChangeRoom(2); }

If the player is still in the room, and doesn't change it.
This raises a fairly big problem, though, and that is creating two sets of rooms, thus doubling the total number of rooms you'll have. For a small game, this shouldn't be that big a problem, though...
I'm no expert, though, and I haven't even heard of Harvestmoon, but i hope this helps...

Regarding point #2, look for "SaveGameSlot" in the manual, that should help. You can create your own GUI, and when the player clicks on a button labelled "Save Slot 1" you can use SaveGameSlot(1, "description").
Title: Re: Can AGS make save point with day&night things like in Harvestmoon?
Post by: Gilbert on Thu 26/04/2007 09:27:36
There're lots of way to implement day-night effect, depending on how you need that, for example, using the search functiom gave a bunch of threads releted to this, for example this thread (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=28923.0).
Title: Re: Can AGS make save point with day&night things like in Harvestmoon?
Post by: Ashen on Thu 26/04/2007 10:07:50
Quote
Now, regarding point #1, I've looked around the manual for maybe a RoomBackground.AnimateToFrame(x) or something along the like, but I couldn't find anything

SetBackgroundFrame (http://www.adventuregamestudio.co.uk/manual/SetBackgroundFrame.htm), perhaps?
Title: Re: Can AGS make save point with day&night things like in Harvestmoon?
Post by: raindropmemory on Thu 26/04/2007 11:32:52
Man, since I'm nearly absolute newbie, those script things are a bit to advance for me!  :o :o :o

:D Anyway, thanks a lot for your help! I think I'll take some times to learn all functions in AGS and then will go for scripting and at that time I'll try to script as your suggestion! Thanks! Thanks! :)
Title: Re: Can AGS make save point with day&night things like in Harvestmoon?
Post by: Dan_N on Thu 26/04/2007 20:07:23
That's the spirit! :D

PS: Yes, Ashen, er... that's the one...
* Feels silly *
Title: Re: Can AGS make save point with day&night things like in Harvestmoon?
Post by: arthur.com on Mon 30/04/2007 13:37:16
You could try the Lightning effect. Low light level for night, biger light lever for day.