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
2 registered members (OptimusPrime, AndrewAMD), 14,580 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
AUM 56 movie code not working for me #130533
05/18/07 08:10
05/18/07 08:10
Joined: Sep 2006
Posts: 4
Battle Ground, WA
T
talonturbon2o Offline OP
Guest
talonturbon2o  Offline OP
Guest
T

Joined: Sep 2006
Posts: 4
Battle Ground, WA
Can someone please help me script to play videos? I'm using the code from AUM 56 and running A6 COMM. Could someone look at this code and tell me why it wont play the video:

var video_mode = 7; // 800x600 pixels
var video_depth = 32;

path "C:\\Program Files\\GStudio6\\MAIN FOLDER"; // path to .wdl and .avi files

var movie_handle;
function play_movie();


function play_movie()
{
movie_handle = media_play("my_movie.avi", null, 100);

while (media_playing (movie_handle) == 0) // wait until the movie starts playing
{
wait (1);
}

while (media_playing (movie_handle) != 0) // wait until the movie has stopped
{
wait (1);
}
}


function main()
{
play_movie();
}

Re: AUM 56 movie code not working for me [Re: talonturbon2o] #130534
05/18/07 10:36
05/18/07 10:36
Joined: May 2006
Posts: 398
Bot190 Offline
Senior Member
Bot190  Offline
Senior Member

Joined: May 2006
Posts: 398
my guess is that your movie is either A) not an .avi file or B) not called my_movie.avi. for B) you can either rename your movie my_movie.avi or you can change were it says that in the script to what your movie is called. as for the first one you'll have to figure that out your self.


Wait, there isn't a "Make My Game Now" button?
Re: AUM 56 movie code not working for me [Re: Bot190] #130535
05/18/07 19:49
05/18/07 19:49
Joined: Sep 2006
Posts: 4
Battle Ground, WA
T
talonturbon2o Offline OP
Guest
talonturbon2o  Offline OP
Guest
T

Joined: Sep 2006
Posts: 4
Battle Ground, WA
Thank you for your response! my_movie.mpg was just a fictional name I made for this post, the name was really jenireads.mpg, and the video played if I shortened the filename to jeni.mpg. (weird)


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