Not really, or I would not of had to ask. Which version of Harlowe you have depends on which version of Twine 2.x you are using and there are a number of different versions of Twine 2.x
The following solution consists of three parts:
1. CSS used to hide unwanted elements.
.hidden {
display: none;
}
2. A first passage which contains both a splash area used to display the "Please Wait" message and a beginning area used to display the actual Beginning of the story.
3. Some Javascript that delays the starting of the long process (in your case the caching of media) so that the first passage is shown to the users. The Javascript also hides the splash area and shows the beginning area at the end of the long process.
/* use a small delay so that the splash area gets rendered (shown). */
setTimeout(function(){
/* your code to cache media. */
/* this example uses a 5 second timeout to simulate a long process. */
setTimeout(function(){
/* at the end of the long process hide the splash and show the beginning. */
$('#splash').addClass('hidden');
$('#beginning').removeClass('hidden');
}, 5000);
}, 200);
Not really, or I would not of had to ask. Which version of Harlowe you have depends on which version of Twine 2.x you are using and there are a number of different versions of Twine 2.x
The following solution consists of three parts:
1. CSS used to hide unwanted elements.
.hidden {
display: none;
}
2. A first passage which contains both a splash area used to display the "Please Wait" message and a beginning area used to display the actual Beginning of the story.
3. Some Javascript that delays the starting of the long process (in your case the caching of media) so that the first passage is shown to the users. The Javascript also hides the splash area and shows the beginning area at the end of the long process.
/* use a small delay so that the splash area gets rendered (shown). */
setTimeout(function(){
/* your code to cache media. */
/* this example uses a 5 second timeout to simulate a long process. */
setTimeout(function(){
/* at the end of the long process hide the splash and show the beginning. */
$('#splash').addClass('hidden');
$('#beginning').removeClass('hidden');
}, 5000);
}, 200);
works great had to change the 5 seconds to 20 but everything works perfectly now
Comments
The following solution consists of three parts:
1. CSS used to hide unwanted elements.
2. A first passage which contains both a splash area used to display the "Please Wait" message and a beginning area used to display the actual Beginning of the story.
3. Some Javascript that delays the starting of the long process (in your case the caching of media) so that the first passage is shown to the users. The Javascript also hides the splash area and shows the beginning area at the end of the long process.
dude I realised that the loading screen does absolutely nothing so I removed it and btw most web games have 2-5 min loading screen dude