00:00
00:00
Newgrounds Background Image Theme

GingaSnappd just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Newgrounds Wiki: CloudSave

Description Handles loading and saving of game states.

CloudSave.clearSlot

Deletes all data from a save slot.

Parameters:

id - int
The slot number.

Returns:

slot - SaveSlot
A SaveSlot object.

CloudSave.loadSlot

Returns a specific #saveslot object.

Parameters:

app_id - string
The App ID of another, approved app to load slot data from. (optional)

id - int
The slot number.

Returns:

app_id - string
The App ID of another, approved app to load scores from.

slot - SaveSlot
A SaveSlot object.

CloudSave.loadSlots

Returns a list of #saveslot objects.

Parameters:

app_id - string
The App ID of another, approved app to load slot data from. (optional)

Returns:

app_id - string
The App ID of another, approved app to load scores from.

slots - array<SaveSlot>
An array of SaveSlot objects.

CloudSave.setData

Saves data to a save slot. Any existing data will be replaced.

Parameters:

data - string
The data you want to save.

id - int
The slot number.

Returns:

slot - SaveSlot