Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,586 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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