Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,561 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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