Animated Loading screens?

Liu-Kang

Member
So I set up a few images thinking they were gonna be for a loading screen then a thought occurred. Can animated gif files be used for loading screens? :o And if they can do I have to use some elaborate jazzed out script of some sort?!
 
You should use script.
Loading.c is the only thing that can help you.

Example(Loading.c):

Code:
void main()
{
	void	s;
	void	value	=	getlocalvar("value");
	void	max	=	getlocalvar("max");
	void	percent;
	void	dot;
	if(max==1) return;

	percent=value*100/max;
	percent%=++percent;

	dot=percent%3;
	if(dot==0)
		s=".";
	else if(dot==1)
		s="..";
	else
		s="...";

	drawstring(180,160,0,"% Complete"+s);

}

Of cource you can draw animated sprites in this function if you like.



 
not to hijack this post but what about using different loading screens for every stage instead of the same screen through the game. is that possible. and if so with scrip, how about an example
 
It doesn't require script, but I forget the command. Mr. Q's Art of Fighting mod uses it. Crack it open and try looking in levels.txt or the individual level texts.

DC
 
Volcanic said:
You should use script.
Loading.c is the only thing that can help you.

Example(Loading.c):

Code:
void main()
{
	void	s;
	void	value	=	getlocalvar("value");
	void	max	=	getlocalvar("max");
	void	percent;
	void	dot;
	if(max==1) return;

	percent=value*100/max;
	percent%=++percent;

	dot=percent%3;
	if(dot==0)
		s=".";
	else if(dot==1)
		s="..";
	else
		s="...";

	drawstring(180,160,0,"% Complete"+s);

}

Of cource you can draw animated sprites in this function if you like.

I want use this script, after create the loading.c i must declare in the...??
 
nowhere, just save it as loading.c and put at the scripts folders.
There are some files, if present, OpenBOR will load. Like update, updated, loading, endlevel, etc.

I know there is a list about all the options somewhere.
 
Ok my friend.
Can you show me how make the loading bar with % .
I create the loading.c and the game start and loading with the same way, nothing change.

Wath is wrong?
 
the list, is here: http://www.chronocrash.com/forum/index.php?topic=11.msg12085#msg12085

About the loadingbar, I got from Rafhot's mod:

void main()
{
void s;
void value = getlocalvar("value");
void max = getlocalvar("max");
if(max==1){
return;
}else{}

void percent=value*100/max;
percent%=++percent;

void dot=percent%3;
if(dot==0)
s=".";
else if(dot==1)
s="..";
else
s="...";

drawstring(143,242,0,"Loading Models..."+percent);
drawstring(259,242,0,"% Complete"+s);
drawbox(0,260,480,15,11,rgbcolor(0,122,133),0);
drawbox(0,260,percent*480*0.01,15,15,rgbcolor(0,233,233),0);

}
 
Sorry for the late!

First added in levels.txt (thanks BeasTie)
Code:
loadingbg	1 -1113 -1194 100 -1138 -1220
loadingbg2	1 -1113 -1194 100 -1138 -1220
With this set numbers the simply bar dont show anymore.
The mod load without any bar in the screen.

Second i get demo of Avengers (Great Work!).
I see the loading.c and level.txt and dont understand where is the problem.

Seems to be a easy problem, but i can't find a solution.
The mod still loading without show the simply bar or the % bar.

Only changing the position numbers of loadingbg.gif and loadingbg2.gif the simply bar can work.
The % bar never works...
 
Back
Top Bottom