x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How do I create an autosave system for a multiple level game

Hey, I'm busy designing a game where a players choices will be essential to the storyline and I'm not sure how to create an autosave system or even a simple save/load system. Would appreciate any help or tips, thank you very much.

Product Version: Not Selected
Tags:
more ▼

asked Jun 20 '17 at 05:48 PM in Blueprint Scripting

avatar image

ShannonCoulson
1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You can create a couple structs and a data table to help you do this.

ChoiceOption Struct

  • Name

  • Description

CharacterChoices Struct

  • Title

  • Description

  • Array of ChoiceOption Struct

  • Index of selected choice. (default -1)

Make a DataTable to hold the CharacterChoices Struct. Fill this table with the choices you want available in your game.

In your GameMode create a new Map of CharacterChoices variable. On BeginPlay load the variable with default values of your choices DataTable.

Then you can lookup the choices in your gamemode's table, and when someone makes a choice you can set the Index of selected choice.

If you include the variable in your save data, then this will become persistent.

Follow this on creating the save object. Saving Your Game with Blueprints.

more ▼

answered Jun 20 '17 at 06:30 PM

avatar image

BenVlodgi
2.1k 38 17 52

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question