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,449 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
level_load in A6 template #155372
09/19/07 07:43
09/19/07 07:43
Joined: Apr 2007
Posts: 83
prog Offline OP
Junior Member
prog  Offline OP
Junior Member

Joined: Apr 2007
Posts: 83
In the code below, i am calling the function entername() in main and i want to load the main level from startgame() function.
When i run the game, the intro part of the game is working fine, but after that the level_load(level_str) in the startgame() function is not loaded(black screen is visible).



function entername()
{
<code>
.
.
.

</code>

wait(3);
select_panels_on();
run_select_level();

}

}


function run_select_level()
{
var temporary_postition = 0; //position for weapons before positioned correctly

level_type = select;
.
.
level_load(select_level_str);
wait(2); //wait until level is loaded
mouse_mode = 1; //use mouse for ship select level
//create and position avatars
ent_create (male_mdl, vector(-100,100,-95), male_selected);
ent_create (female_mdl, vector(-100,100,-98), female_selected);
ent_create (hairy_mdl, vector(-100,100,-98), hairy_selected);
ent_create (lizard_mdl, vector(-100,100,-98), lizard_selected);
.
.
.

startgame();
}


function startgame()
{

select_panels_off();

level_load(level_str);
wait(2);


if (player_captain == male){ent_create(male_mdl,temp,PlBiped01);}
if (player_captain == female){ent_create(female_mdl,vector(1600, 100, -800),PlBiped01);}
if (player_captain == lizard){ent_create(lizard_mdl,vector(1600, 100, -800),PlBiped01);}
if (player_captain == hairy){ent_create(hairy_mdl,vector(1600, 100, -800),PlBiped01);}


}

Re: level_load in A6 template [Re: prog] #155373
09/21/07 03:46
09/21/07 03:46
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline
User
JazzDude  Offline
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
I don't see the strings that these 2 lines refer to. Did you just omit them from the example?

level_load(select_level_str);
level_load(level_str);

Re: level_load in A6 template [Re: JazzDude] #155374
09/21/07 05:33
09/21/07 05:33
Joined: Apr 2007
Posts: 83
prog Offline OP
Junior Member
prog  Offline OP
Junior Member

Joined: Apr 2007
Posts: 83
I have declared the strings also ,
but still the level is not loaded....


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