a bit cheered to early
It seems that more var have the same problem.
When I create a var it doesn't "realy" creating a var.
example my old script worked:
var video_mode = 7;
var video_depth = 16;
var move_vec[3] = 0,0,0;
function main()
{
level_load("TLlevel1.wmb");
wait(2);
}
var idle_percent = 0; //
var walk_percent = 0; // "
var temptilt = 0; //turn the camera
ecc...
This scrip is still working
but when I copy this script to new game all var are getting an error: MAIN undenclared indentifier.
I found out all var where black then gray.
My new script that doesn't work:
function main()
{
video_mode = 9;
video_depth = 16;
level_load("test9.wmb");
wait(2);
}
var = idle_percent = 0;
var = walk_percent = 0;
var = move_vec[3] = 0,0,0;
ecc...
It doesn't change if you put the var in the main function.