Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (3run, miwok, AndrewAMD, Quad, TipmyPip, fairtrader, 1 invisible), 637 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Movie in Panel Help :) #12379
04/17/03 08:31
04/17/03 08:31

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Hi, can some please help me?
I need to make AVI or any other movie file to play in the background of my Menu Panel instead of image.
(Im Workin g with 3DGS 5.51 Com Ed)

Thanks in advance! [Big Grin]

Re: Movie in Panel Help :) #12380
04/17/03 10:19
04/17/03 10:19
Joined: Jan 2003
Posts: 517
Illinois
G
giorgi3 Offline
User
giorgi3  Offline
User
G

Joined: Jan 2003
Posts: 517
Illinois
Here is an example of displaying a movie in a small window on top of a panel.

code:
  
bmap moviescreen_bmp = <moviescreen.bmp>; // smaller window
bmap intromap = <intro.bmp>; // panel bitmap

panel introscreen {
bmap = intromap;
flags = refresh,d3d;
window 150,10,320,235,moviescreen_bmp,0,0; // position small window on panel to play the movie on
}

movie_handle = media_play ("movie.avi",moviescreen_bmp,150); // play the movie on the moviescreen window of the panel


while (media_playing(movie_handle) != 0)
{
// allow interruption of the video by hitting anykey
if (key_any != 0)
{
media_stop (movie_handle);
}
wait (1);
}

Hope this helps


Giorgi3

10,000 parts flying in a close formation does not constitute an airplane. Some assembly is required.
Re: Movie in Panel Help :) #12381
04/17/03 11:24
04/17/03 11:24

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



It Gives me an error "Can't Compile Script"

Re: Movie in Panel Help :) #12382
04/17/03 12:05
04/17/03 12:05
Joined: Jan 2003
Posts: 517
Illinois
G
giorgi3 Offline
User
giorgi3  Offline
User
G

Joined: Jan 2003
Posts: 517
Illinois
Is that the only error message? Where did you place the code? Do you have bitmaps, movie defined with your stuff?


Giorgi3

10,000 parts flying in a close formation does not constitute an airplane. Some assembly is required.
Re: Movie in Panel Help :) #12383
04/17/03 15:14
04/17/03 15:14

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



yeah, i had everything bitmat names as its there and movie file
and it didnt work.

Re: Movie in Panel Help :) #12384
04/18/03 10:56
04/18/03 10:56
Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Rhuarc Offline
Expert
Rhuarc  Offline
Expert

Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
We chatted online and this is the working code for those interested [Wink] :
code:
 bmap moviescreen_bmp = <moviescreen.bmp>; // smaller window
bmap intromap = <intro.bmp>; // panel bitmap

panel introscreen {
bmap = intromap;
flags = refresh,d3d,visible;
window 150,10,320,235,moviescreen_bmp,0,0; // position small window on panel to play the movie on
}

var movie_handle;

function movie_ctrl()
{
while (media_playing(movie_handle) != 0)
{
// allow interruption of the video by hitting anykey
if (key_any != 0)
{
media_stop (movie_handle);
}
wait (1);
}
introscreen.visible = off;
}

then in your main function, at the end:
code:
 	movie_handle = media_play ("movie.avi",moviescreen_bmp,150);
movie_ctrl();

I think thats all of it...


I no longer post on these forums, keep in touch with me via:
Linkedin.com
My MSDN blog
Re: Movie in Panel Help :) #12385
04/22/03 11:48
04/22/03 11:48
Joined: Jan 2003
Posts: 517
Illinois
G
giorgi3 Offline
User
giorgi3  Offline
User
G

Joined: Jan 2003
Posts: 517
Illinois
Hi [SF]Rhuarc,

Nicely done. I see I missed the var movie_handle statement in my original post. I also like the way you broke the interrupt code out into a function.

Giorgi3


Giorgi3

10,000 parts flying in a close formation does not constitute an airplane. Some assembly is required.

Moderated by  HeelX, Spirit 

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