Forum rules - please read before posting.

I need when I click on a Hotspot a specified save file will be load!

edited January 2015 in Technical Q&A
Hi guys,
 Is this possible?
I need when I click on a Hotspot a specified save file will be load!
I don't know how can I do this, can't find anything to load a save file in action lists
Please help
Thanks

Comments

  • See section 12.6 of the manual.  You can load a game with:

    AC.SaveSystem.LoadGame (saveID);


    where saveID is the slot number you want to load.  Rather than using an Action, instead place this in a function within a custom script.  The Hotspot can be used to call that function when clicked: change the Interaction source setting at the top of the Hotspot inspector to Custom Script.  You can then specify the object to which your script is attached, and the name of the function.






  • edited January 2015
    Thanks, I'm going to test with it

  • Sorry but what is your mean by place this line in a function within a custom script? within a java script
    function or C# script? 
  • Now I'm getting an error that says
    No overload for method `LoadGame' takes `1' arguments
  • My apologies - I got my functions mixed up.  This should work:

    KickStarter.saveSystem.LoadSaveGame (saveID);

    You'll want to place it inside a C# script.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.