Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, alibaba), 1,426 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Loading screen help.. #320171
04/20/10 06:09
04/20/10 06:09
Joined: Apr 2010
Posts: 14
D
daggpro Offline OP
Newbie
daggpro  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 14
My game has a loading screen that loads a tga image

BMAP* loader_tga = "load.tga";

and the panel for the image..

PANEL* running_pan =
{
bmap = loader_tga;
layer = 50;
}

I have added the following code in my main function

set(running_pan,VISIBLE); //Loads the loading screen
wait(-5); //waits till the level loads
level_load(levelname); //loads my level
reset(running_pan,VISIBLE); //resets the loading screen.

Well it works but the prob is my player character no longer responds to keys after the loading screen resets...The game works fine if i remove the above code.

Where am i wrong...



Last edited by daggpro; 04/20/10 06:11.
Re: Loading screen help.. [Re: daggpro] #320172
04/20/10 07:27
04/20/10 07:27
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
you need to load the level first, and then perform a wait.

like this:
Code:
set(running_pan,VISIBLE); //Loads the loading screen
level_load(levelname); //loads my level
wait(-5); //waits till the level loads
reset(running_pan,VISIBLE); //resets the loading screen.



Dont know if that solves the bug, but it should help you in the right direction.

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Loading screen help.. [Re: Helghast] #320193
04/20/10 10:48
04/20/10 10:48
Joined: Apr 2010
Posts: 14
D
daggpro Offline OP
Newbie
daggpro  Offline OP
Newbie
D

Joined: Apr 2010
Posts: 14
Thanks a lot ......it helped.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1