Gamestudio Links
Zorro Links
Newest Posts
MRC.c and WFO
by 11honza11. 11/18/25 15:22
webGL
by Ice2642. 11/17/25 21:27
Camera always moves upwards?
by NeoDumont. 11/17/25 09:56
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, 1 invisible), 16,939 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
SkinnyApe, tritom, sheliepaley, Blueguy, blobplayintennis
19179 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