Level load error.

Posted By: acolema2

Level load error. - 09/26/06 00:34

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;
}
Posted By: acolema2

Re: Level load error. - 09/26/06 02:16

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?
Posted By: D3D

Re: Level load error. - 09/26/06 05:30

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
© 2023 lite-C Forums