be sure to check your ENTIRE wdl file closely
you could have a loose { or ; someplace your not looking ( like a long empty space at the bottem with a { or ;
formatting your work helps to not only read it, but to find errors
here is your script above just as posted. I don;t readly see any formatting errors in it which is why it suggests you got other stuff in that wdl file then your posting
( i didn;t change a thing other than adjusted the formatting)
Code:
////////////////////////////////////////////////////////////////////////////////////
var video_mode = 7; // 800x600 pixels
var video_depth = 32; // 32 bit mode
////////////////////////////////////////////////////////////////////////////////////
string work10_wmb = "work10.wmb"; // define the string associated to the name of the level
////////////////////////////////////////////////////////////////////////////////////
function main()
{
level_load (work10_wmb);
while(1)
{
if(key_b)
{
camera.x = camera.x + 1;
}
wait(1);
}
}
action rotate_plane
{
var rotationstuff = 0;
while(1)
{
if(key_cuu)
{
my.tilt += 1;
}
if(key_cud)
{
my.tilt -= 1;
}
if(key_cul)
{
my.pan += 1;
}
if(key_cur)
{
my.pan -= 1;
}
if(key_w)
{
c_move(my, vector(5,0,0), nullvector, glide);
}
if(key_s)
{
c_move(my, vector(-5,0,0), nullvector, glide);
}
if(key_a)
{
c_move(my, vector(0,5,0), nullvector, glide);
}
if(key_d)
{
c_move(my, vector(0,-5,0), nullvector, glide);
}
camera.pan = my.pan;
camera.tilt = my.tilt;
camera.x = my.x;
camera.y = my.y;
camera.z = my.z;
wait(1);
}
}