Avatar Documentation

Encrypted and Secure

All user details are encrypted and securely stored.

How to add Avatars

Avatars can easily be added to your app or game and can provide your user with a personal touch.

  • Register for your FREE account..
  • Create an Avatar list
  • Upload your images to your list

Getting your avatars

avatarData = "avatarList=" + string(global.avatarString) + "&ownerString=" + string(global.ownerString);

getAvatars = http_post_string("https://www.gmdb.co.uk/data/getAvatars.php", avatarData);

Async Result

if (ds_map_find_value(async_load, "id") == getAvatars)
{
if (ds_map_find_value(async_load, "status") == 0)
{
getResult = ds_map_find_value(async_load, "result");
getResultDecoded = json_decode(getResult);

var getAllData = ds_map_find_value(getResultDecoded, "default");
var avatarMapSize = ds_list_size(getAllData);

for (var i = 0; i < avatarMapSize; i++)
{
avatarData = ds_list_find_value(getAllData, i);
global.avatarImage[i] = sprite_add(string(ds_map_find_value(avatarData, "secureURL")),1,false,false,0,0);
}
}
}