Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by VoroneTZ. 07/14/26 05:57
Z9 getting Error 058
by jcl. 07/13/26 12:46
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 07/09/26 13:16
New Zorro version 3.11
by jcl. 07/06/26 06:56
Synthetic test data in Zorro
by jcl. 07/06/26 06:54
Parameter filename BUG
by walt_Schwarz. 07/02/26 15:36
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (VoroneTZ), 2,597 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Ephraim, Student_64151
19223 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Level load error. #91504
09/26/06 00:34
09/26/06 00:34
Joined: Aug 2006
Posts: 29
A
acolema2 Offline OP
Newbie
acolema2  Offline OP
Newbie
A

Joined: Aug 2006
Posts: 29
I have two levels, and basically level 1 takes to you level 2 when its complete. The problem is once level 2 is loaded some of my actions (in level2 script) stop working. I have an icon that respond to an impact and it won't activate.

---
var x;
function myst_movie1
{
msg_show("Congratulations, you've earned the right to see one of the 4 mystery videos.",10);
media_play("bleach.avi",null,100);
x = media_handle;
while(media_playing(x) != 0)
{
wait(1);
}
exit;
}

action end_game
{
my.enable_impact = on;
my.event = myst_movie1;
}

Re: Level load error. [Re: acolema2] #91505
09/26/06 02:16
09/26/06 02:16
Joined: Aug 2006
Posts: 29
A
acolema2 Offline OP
Newbie
acolema2  Offline OP
Newbie
A

Joined: Aug 2006
Posts: 29
Extra info. I can't jump into the object, but if I run (shift + up) then it'll trigger. I'm thinking this is a push bug?

Re: Level load error. [Re: acolema2] #91506
09/26/06 05:30
09/26/06 05:30
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
I'm not good c-scripter and haven't test this. Anyway, shouldn't it be something like:

Code:
var x;
function myst_movie1()
{ if (EVENT_TYPE == EVENT_IMPACT) {
msg_show("Congratulations, you've earned the right to see one of the 4 mystery videos.",10); //?
media_play("bleach.avi",null,100);
x = media_handle;
while(media_playing(x) != 0)
{wait(1);}
exit; //sys_exit("Game Over"); wait(1);
}}


Code:
action end_game
{
my.enable_impact = on;
my.event = myst_movie1;
}



Dusty


smile

Moderated by  HeelX, rvL_eXile 

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