Ich bekomme das oben ganannte Error(W 1509) wenn ich mein Level Wechseln will.
Hier die Wichtigen COde Zeilen:
function Lade_C2
{
fps_max = 40;
wait(5);
level_load("ode_c2.wmb");
wait(5);
ks_etc.visible = off;
block_commandmenu = 1;
command_pan.visible = off;
health_bar_pan.visible = off;
health_bar_pan2.visible = off;
health_bar_pan3.visible = off;
b_attack = 0;
wait(1);
}
und
function licht_cutscene
{
sleep(2);
Kamera_Modus2 = 0;
b_wasd = 1;
b_jump = 1;
while(x < 20)
{
light2.Alpha = 0;
vec_set(temp,light2.x);
vec_sub(temp,camera.x);
vec_to_angle(camera.pan,temp);
camera.z += 500;
x += 1;
wait(1);
}
sleep(1);
light2.INVISIBLE = off;
while (light2.alpha < 99){
light2.alpha += 0.9*time_step;
wait(1);
}
if(light2.alpha > 99)
{
sleep(3);
lade_C2();
}
}
Das komische ist nur das wenn ich den Alpha Wert Des Sprites NICHT änder kurz bevor ich das Level Lade bekomme ich keinen Error.Wieso krieg ich einen Error Das hängt doch garnicht zusammen...?