Gamestudio Links
Zorro Links
Newest Posts
Black Book, 4th edition
by jcl. 03/17/26 09:28
Trying to get started...
by Lukudo. 03/16/26 09:08
ZorroGPT
by TipmyPip. 03/08/26 18:50
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, clint000, 1 invisible), 5,116 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
mredit, vestriaa, Lukudo, mldenoiser, the1
19204 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