Storage (Construct 3)
The plugin exposes local (per device) and cloud (follows the player across devices) storage as event‑sheet actions. Pick based on what the data means — see when to use local vs. cloud below.
Local storage
Section titled “Local storage”- Set local item fires and forgets.
- Get local item is async — you respond to the
On local item loadedtrigger, branching onLastKeyto route each value to the right variable.
Cloud storage
Section titled “Cloud storage”Same shape, cloud verbs:
Cloud storage is keyed off the player’s FRVR auth session — it follows them across devices and channels.
When to use local vs. cloud
Section titled “When to use local vs. cloud”| Use local when… | Use cloud when… |
|---|---|
| Data is cheap to regenerate | Losing it would ruin the player’s progress |
| It’s device‑specific (mute, graphics setting) | It should follow the player everywhere |
| You don’t need the player logged in | The player has a FRVR auth session |
Game saves, unlocks, and IAP‑granted content belong in cloud. Preferences and caches belong in local.
”Missing” ≠ “new player”
Section titled “”Missing” ≠ “new player””A missing cloud read can mean: new player, auth isn’t resolved yet, or transient network blip. Don’t immediately overwrite with a fresh state — debounce or re‑check before assuming it’s a genuinely new account.