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
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 13,346 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
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