Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by TipmyPip. 02/24/26 17:09
ZorroGPT
by TipmyPip. 02/23/26 21:52
WFO Training with parallel cores Zorro64
by Martin_HH. 02/23/26 15:29
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (AndrewAMD, TipmyPip, Quad, Grant, Martin_HH), 4,922 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Cant and Load in the same Frame Lade_C2 : Level_Load(@2) #311452
02/19/10 21:14
02/19/10 21:14
Joined: Dec 2007
Posts: 188
Germany
Noobi Offline OP
Member
Noobi  Offline OP
Member

Joined: Dec 2007
Posts: 188
Germany
Ich bekomme das oben ganannte Error(W 1509) wenn ich mein Level Wechseln will.
Hier die Wichtigen COde Zeilen:

Code:
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

Code:
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...?

Re: Cant and Load in the same Frame Lade_C2 : Level_Load(@2) [Re: Noobi] #311454
02/19/10 21:23
02/19/10 21:23
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline
User
Schmerzmittel  Offline
User

Joined: Aug 2005
Posts: 512
Bayern
Ohne es zu Prüfen. Aber warum verwendest du sleep? Wurde das nicht komplett geändert in wait?

Wenn du wait(-3) nimmst, dann wartest du auch 3 Sekunden. Probiers mal aus.


A7 Com V7.80
Re: Cant and Load in the same Frame Lade_C2 : Level_Load(@2) [Re: Schmerzmittel] #311462
02/19/10 22:04
02/19/10 22:04
Joined: Dec 2007
Posts: 188
Germany
Noobi Offline OP
Member
Noobi  Offline OP
Member

Joined: Dec 2007
Posts: 188
Germany
ok habs mal ausprobiert,also es ist anscheinend das gleiche wie sleep ,die Meldung bekomm ich jedoch immernoch....

Last edited by Noobi; 02/19/10 22:04.
Re: Cant and Load in the same Frame Lade_C2 : Level_Load(@2) [Re: Noobi] #311466
02/19/10 22:22
02/19/10 22:22
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline
Expert
Damocles_  Offline
Expert

Joined: Feb 2009
Posts: 2,154
Ich schätze mal das die funktion "Lade_C2"
mehrere Male zugleich aufgerufen wird.

Überprüf mal wer die aufruft, und blockiere mehrere eventuelle Aufrufe.
Zb indem Du in "Lade_C2" eine globale Variable am Anfang setzt

if(loading==1) return;
loading=1;

....laden

..ende:

wait(1);
loading=0;



Re: Cant and Load in the same Frame Lade_C2 : Level_Load(@2) [Re: Damocles_] #311487
02/20/10 00:34
02/20/10 00:34
Joined: Dec 2007
Posts: 188
Germany
Noobi Offline OP
Member
Noobi  Offline OP
Member

Joined: Dec 2007
Posts: 188
Germany
Ok Danke!!
Es hat super geklappt grin

Last edited by Noobi; 02/20/10 00:34.

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