Can AGS make save point with day&night things like in Harvestmoon?

Started by raindropmemory, Thu 26/04/2007 08:27:10

Previous topic - Next topic

raindropmemory

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

Dan_N

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...

Code: ags

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

If the player changes the room.

Code: ags

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").

Gilbert

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.

Ashen

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, perhaps?
I know what you're thinking ... Don't think that.

raindropmemory

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! :)

Dan_N

That's the spirit! :D

PS: Yes, Ashen, er... that's the one...
* Feels silly *

arthur.com

You could try the Lightning effect. Low light level for night, biger light lever for day.

SMF spam blocked by CleanTalk