you can load the first level direct in the main
here a smple:
/////////////////////////////////////////
//main_script.c
#include <litec.h>;
#include <acknex.h>;
#include <default.c>;
function main()
{
video_mode = 7; //800x600
video_depth = 32;
video_screen = 2; // 1 = fullscreen, 2 = window
wait(1);
level_load("YouLevelName.wmb");
wait(1);
}
//*************************************//
check the following:
1. is the YouLevelName.wmb file in the projectfolder;
2. load the level with: level_load("YouLevelName.wmb");
3. test an wait(2); back the level_load("YouLevelName.wmb");
//*************************************//
for levelload with a script, here a sample:
/////////////////////////////////////
//load_script.c
function load_my_level()
{
level_load("YouLevelName.wmb");
wait(2);
}
/////////////////////////////////////////
//main_script.c
#include <litec.h>;
#include <acknex.h>;
#include <default.c>;
#include "load_script.c";
function main()
{
video_mode = 7; //800x600
video_depth = 32;
video_screen = 2; // 1 = fullscreen, 2 = window
wait(1);
function load_my_level();
}
Just some small suggestions/ adjustments:
sample:
/////////////////////////////////////
//load_script.c
function load_my_level() {
level_load("YouLevelName.wmb");
}
/////////////////////////////////////////
//main_script.c
#include <acknex.h>
#include <default.c>
#include "load_script.c"
function main()
{
video_mode = 7; //800x600
video_screen = 2; // 1 = fullscreen, 2 = window
load_my_level(); // the word ""function"" has to be removed
}
@jane: What's the purpose of the wait(2) in the following hint:
"3. test an wait(2); back the level_load("YouLevelName.wmb");" ?