Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (henrybane), 1,246 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
need help guys #118870
03/22/07 13:29
03/22/07 13:29
Joined: Aug 2006
Posts: 68
A
alex5801 Offline OP
Junior Member
alex5801  Offline OP
Junior Member
A

Joined: Aug 2006
Posts: 68

Code:
  
if(level_code==1 )
{
p1_health=100;
player.health=100;
level_code=2.2;
level_load("level2b.wmb");
freeze_mode = 1;
media_play("level2b.avi", null, 50);
freeze_mode = 0;

wait(2);
AIpath();
}


i got error after i add in
freeze_mode = 1;
media_play("level2b.avi", null, 50);
freeze_mode = 0;

into this piece of coding

anyone can help me up?
i trying to play a avi movie clip before level2b start and just right after level 1.

my level change when the player hit the box at the end of level1

Re: need help guys [Re: alex5801] #118871
03/22/07 13:33
03/22/07 13:33

A
Anonymous
Unregistered
Anonymous
Unregistered
A



What is the Error?

maybe you want to wait for the end of the movie?

hdl=media_play("level2b.avi", null, 50);
while(media_play(hdl)==on){wait(1);}

Re: need help guys [Re: ] #118872
03/22/07 13:45
03/22/07 13:45
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
I would add what mercuryus suggested plus change the order of the instructions a little bit:
Code:

if(level_code == 1)
{
var hdl;
freeze_mode = 1;

hdl = media_play("level2b.avi",null,50);
while(media_play(hdl) == on) { wait(1); }

level_load("level2b.wmb");
wait(3);

p1_health = 100;
player.health = 100;
level_code = 2.2;

freeze_mode = 0;
AIpath();
}



Re: need help guys [Re: Xarthor] #118873
03/22/07 19:44
03/22/07 19:44
Joined: Aug 2006
Posts: 68
A
alex5801 Offline OP
Junior Member
alex5801  Offline OP
Junior Member
A

Joined: Aug 2006
Posts: 68
errr....still got error

error E1513
(media_play(hdl)==on)

Re: need help guys [Re: alex5801] #118874
03/24/07 19:58
03/24/07 19:58
Joined: Nov 2003
Posts: 1,257
Wade_Adams Offline
Serious User
Wade_Adams  Offline
Serious User

Joined: Nov 2003
Posts: 1,257
Code:
 
if(level_code == 1)
{
var hdl;
freeze_mode = 1;
hdl = media_play("level2b.avi",null,50);
while(media_playing(hdl) != 0)
{
wait(1);
}
level_load("level2b.wmb");
wait(3);
p1_health = 100;
player.health = 100;
level_code = 2.2;
freeze_mode = 0;
AIpath();}
}



Last edited by Wade_Adams; 03/24/07 19:59.

Optimism is an occupational hazard of programming: feedback is the treament.
Kent Beck
Re: need help guys [Re: Wade_Adams] #118875
03/26/07 08:17
03/26/07 08:17
Joined: Aug 2006
Posts: 68
A
alex5801 Offline OP
Junior Member
alex5801  Offline OP
Junior Member
A

Joined: Aug 2006
Posts: 68
wade now my video can play but how come after finish playing te video i still freeze in the level1?

Re: need help guys [Re: alex5801] #118876
03/27/07 18:06
03/27/07 18:06
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline
User
JazzDude  Offline
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
There is a bug in A6.5 with freeze-mode.
Check the post "freeze-mode problem" in
Bug Hunt. JCL gives the solution.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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