Hi everyone.. I've created a game using JS/CSS/HTML5 just something simple, however, I have used a start button.. with the following code ... $('#StartBtn'). click(LaunchGam e); -- which when pressed launches the game from the home screen.. however when the player loses on the game, the game panel disappears and the words "busted, Try Again" appear, which is fine, however, I'm trying to get the Start Button to appear after 2/3secs linking back through to the home page to restart the game.. However, I just can't figure out how to do it.
Below is the code that appears when the game ends..
function EndGame(HasTile dOut) {
ShowHomeScreen( );
$('#EntireScree n').html('');
var GameOutcomeText = (HasTiledOut) ? 'Busted!!' : 'Try Again!';
$('#GameOutcome ').text(GameOut comeText).fadeI n();
}
Look forward to any help given.. Many thanks in advance!!
LondonLad1978
Below is the code that appears when the game ends..
function EndGame(HasTile dOut) {
ShowHomeScreen( );
$('#EntireScree n').html('');
var GameOutcomeText = (HasTiledOut) ? 'Busted!!' : 'Try Again!';
$('#GameOutcome ').text(GameOut comeText).fadeI n();
}
Look forward to any help given.. Many thanks in advance!!
LondonLad1978
Comment