Verb Coin Save

Started by metalmario991, Sun 01/02/2015 22:51:13

Previous topic - Next topic

metalmario991

I was working on a verb coin game when I noticed there seemed to be no save feature in-game. Do I need to create one or am I missing something?

Snarky

Your question is unclear. When you make a game, you need to decide how the save game system should work (and whether to have one at all). Some game templates come with code for this already, but not all.

However, it's pretty easy to implement, since AGS has a built-in save game dialog which you call up with SaveGameDialog(). For example, to bring up the save game dialog when you press F5:

Code: AGS
// In the Global Script
function on_key_press(eKeyCode keycode)
{
  if (keycode == eKeyF5)
    SaveGameDialog();
  // Other stuff
}


Similarly you have RestoreGameDialog(). You can also write your own dialog or just link save/load to a particular key or button directly with SaveGameSlot() and RestoreGameSlot(). All this stuff is documented in the manual.

SMF spam blocked by CleanTalk