Disabling online games.

Silver
Is it possible to set your game as download only? I'm toying with the idea of incorporating sound and images into my game but can envisage a problem with the online version as it doesn't appear to have a pre-loader so sounds and animation you might want to be synced won't work as they'll load at different rates (if at all) and It'll end up a bit of a mess (I'm speculating here).

I suppose an alternative solution would be to make the online game text only but that would be a boat load of extra work creating an audiovisual game then going back through it wheedling out the media files to create the text only version, plus it'd have to be two different listings anyway (as two different game files) wouldn't it?

Edit: actually there is a pre-loader. I should test before I complain :roll:

Pertex
You can call a JS function to test if your game is online

javascript:

function testOnline() {
if( window.location.hostname != "local") {
ASLEvent("checkOnline", true);
} else {
ASLEvent("checkOnline", false);
}
return false;
}


call it in the start script like this:


JS.testOnline()


and add a function like this

<function name="checkOnline" parameters="answer">
if (UCase(answer)="TRUE") {
msg("Plz download this game and play it offline")
finish()
}
</function>

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums