Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by JeyKey II. 11/29/26 10:01
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (EvanTJ, JeyKey II), 8,576 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
media incorporation #140164
07/09/07 03:55
07/09/07 03:55
Joined: Sep 2006
Posts: 41
B
blakegoat Offline OP
Newbie
blakegoat  Offline OP
Newbie
B

Joined: Sep 2006
Posts: 41
i am trying to include a movie at the beginning of my game called "Initial.wmv" and i have used the following script:

// main game loop
while(1)
{
if(gid01_level_state != gid01_level_loaded)
{
freeze_mode = 1; // pause the game
while(gid01_level_state != gid01_level_loaded) { wait(1); }
freeze_mode = 0; // resume the game
if (vid_played == 0) {
media_play(video_start, NULL, 80);
vid_played = 1; }

}
wait(1);
}


and also included a string which defines video_start as the movie file and also declared the vid_played variable. When i load the level, it runs as normal but without the video.

can anybody point me in the right direction ?

Re: media incorporation [Re: blakegoat] #140165
07/09/07 04:15
07/09/07 04:15
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
I dont know about the Template system but this worked for me;

var movie_handle;

function play_opener()// opening movie
{

movie_handle = media_play("titleintro.avi",null,100);
wait(32);
freeze_mode = 0;

}

...and in Main before freeze mode = 0;

play_opener();

Hope this helps,

Cheers.

Re: media incorporation [Re: Nems] #140166
07/09/07 05:19
07/09/07 05:19
Joined: Sep 2006
Posts: 41
B
blakegoat Offline OP
Newbie
blakegoat  Offline OP
Newbie
B

Joined: Sep 2006
Posts: 41
ahhh damn this is frustrating me. when i tried this the same thing happened as before when i used my code. if there was something wrong with the code i thought it would get an error but apart from that the game runs normal :S:S

so confusing, does anybody else have any ideas ?

Re: media incorporation [Re: blakegoat] #140167
07/12/07 17:16
07/12/07 17:16
Joined: Apr 2007
Posts: 249
Louisana, USA
Ilidrake Offline
Member
Ilidrake  Offline
Member

Joined: Apr 2007
Posts: 249
Louisana, USA
Where are you placing the movie? It will not run from a path. It must be in the same folder as your main wdl code. Hope that helps.


Just Because Your Paranoid Doesn't Mean They Aren't After You...Because They Really Are

http://spearbang.awardspace.com/news.php

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