Rex's plugins for Construct2
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About

rex_savedata_index

Plugin, ACE table, Discussion thread
Dependence: official webstorage plugin

Introduction
Save/load game into/from logical slot.
The game will be saved into a selected logical slot in the save-game UI, but the game status need to be saved before save-game UI opened, since the official save-load system will load game from saving status.
So there will have a mapping between physical slot (used in official save game action) and logical slot (used in save-game UI).
This plugin would hide the physical slot behind logical slot.

Usage
Sample capx
Prepare
Remember to put official webstorage plugin into project.
Save game
Following these 2 steps to save data into logical slot.
  1. Save to temporary slot - save meta data by "Action:Set extra data", and run official save by "Action:Save game" to save game into temporary slot.
  2. Put temporary slot into logical slot by "Action:Save slot".
Display meta date
The "load" option in the game might not be enable if all slots are unused checked by "Condition:Empty".
"Condition:Is occupied" is used to check if the specific logical slot had saved data. Then get meta data by "Expression:ExtraData".
The parameters of "Expression:ExtraData" are
  1. name
  2. index of logical slot, ignore this parameter for temporary slot
Load game
Call "Action:Load game" under "Slot" category to load game from this logical slot.
"Action:Load game" under "Temporary" category is used to load game from temporary slot.
Clean slot
"Action:Clean slot" could be used to clean the logical slot.

Create a free web site with Weebly
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About