• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

HTML5 Get rid of Html5 loading bar

3jgamesdev

Member
Hi Good day,

I dont know if it was possible to get rid of the loading bar when exporting html5 games, if possible how im going to do it?or is there any alternative way not the loading bar to pop up in the beginning

THANKS
 

FrostyCat

Redemption Seeker
Just create a JS extension containing a function doing nothing with 6 real arguments:
Code:
function empty_bar(ctx, width, height, total, current, image) {
}
Then set that as your loading bar in Global Game Settings > HTML5.
 

3jgamesdev

Member
Just create a JS extension containing a function doing nothing with 6 real arguments:
Code:
function empty_bar(ctx, width, height, total, current, image) {
}
Then set that as your loading bar in Global Game Settings > HTML5.
thanks i havent try to make my own js extension before, can you teach me how?
 
Last edited:

3jgamesdev

Member
This is what i have done,

1.) Open notepad, and i copy this code
function empty_bar(ctx, width, height, total, current, image) {
} and save it loading.js
2.) create extension name it Loading
3.)add file the loading.js
4.)add function, Name is Loading_Function as well as the external name
5.) and use it in init function and final function,

I still didnt get the drop down of the js
 

FrostyCat

Redemption Seeker
This is what i have done,

1.) Open notepad, and i copy this code
function empty_bar(ctx, width, height, total, current, image) {
} and save it loading.js
2.) create extension name it Loading
3.)add file the loading.js
4.)add function, Name is Loading_Function as well as the external name
5.) and use it in init function and final function,

I still didnt get the drop down of the js
You need to to make that function take exactly 6 double-valued arguments in order for it to show up on the loading bar dropdown. Uncheck "variable length arguments" and add 6 arguments (0 through 5), each of type "double".

And I never told you to use it as the init or final function.
 

3jgamesdev

Member
You need to to make that function take exactly 6 double-valued arguments in order for it to show up on the loading bar dropdown. Uncheck "variable length arguments" and add 6 arguments (0 through 5), each of type "double".

And I never told you to use it as the init or final function.
okay thanks
 
Top