Triggering autosaves.

Started by mwahahaha, Sat 07/01/2006 01:27:49

Previous topic - Next topic

mwahahaha

Could someone please tell me how you trigger autosaves in AGS games like for when you enter a room?  Preferably without coding.

Ishmael

AGS has no autosave feature per se, but you can do it by saving a game with a description of your choise to some high number slot - like 99 - and then restore that slot on quickload or such.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Ashen

There's no way to do it without coding, but fortunately it's a very simple bit of code:
Code: ags

SaveGameSlot(99, "Autosave");

(If you want, you can get fancy and use the DateTime functions to add the date and time - but that's more coding.)

As Ishmael said, just run it in Player enters screen, or wherever you want to trigger the save. However, depending on your game, be carefull how you use it - check out Vince Twelve's 'bug' in 1213 (not that that's likely to be a problem with a more traditional adventure game).
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk