Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 06/24/26 18:31
Z9 getting Error 058
by flip26. 06/24/26 13:57
Lapsa's very own thread
by Lapsa. 06/20/26 18:18
Ranger by Robert Pardo - now for Zorro
by Smallz. 06/20/26 11:23
Z12 live performance
by jcl. 06/19/26 11:21
How to select between IB accounts by script?
by AndrewAMD. 06/13/26 15:44
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 16,846 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 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