Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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 | chip programmers | 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