Hello :D
just i was wondering if construct 2 can add a domain site lock feature, many famous games portal website like for example gametako, require sometime for exclusive releases to be sitelocked for thier domain, this feature can be added very easily with stencyl flash games, also HTML5 if it's linked through external JS, i just wonder if Ashley could apply this important feature like for example in properties, we can add the domain we want our game to be locked, than an event that check if domain="true" do some action, for example developer could make a layout that appear if the game uploaded on different domain telling the players he must play this game on specific website.
here a java script to do that task, i just believe that better be added to Construct 2 by default than making an external plugin for that purpose.
JS Code:
function game_tako(argument0,argument1,argument2)
{
var argument0;
var argument1 = document.location.href;
var argument2=argument1.indexOf("scirra.com");
if (argument2==-1)
{
argument0 = 'false';
}
else
{
argument0 = 'true';
}
return argument0 ;
}