Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/20/26 15:57
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Grant), 3,476 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
juergenwue, VladMak, Geir, ondrej, mredit
19208 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
media to play on panel #234280
11/01/08 22:48
11/01/08 22:48
Joined: Aug 2008
Posts: 8
rx8boy456 Offline OP
Newbie
rx8boy456  Offline OP
Newbie

Joined: Aug 2008
Posts: 8
I've tried using the code to play media on a panel. The sound comes up but the picture doesn't. Help

Also when i want it to start the game the media sound and picture fades out. Is that regarding media_handle

Re: media to play on panel [Re: rx8boy456] #234285
11/01/08 23:05
11/01/08 23:05
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
you'll need to post some of your code to see what is wrong.

First you need a bmap, that you can render the video to. It has to be a 16-bit image with no alpha channel.

are you using c-script or lite-c?

Re: media to play on panel [Re: DJBMASTER] #234287
11/01/08 23:08
11/01/08 23:08
Joined: Aug 2008
Posts: 8
rx8boy456 Offline OP
Newbie
rx8boy456  Offline OP
Newbie

Joined: Aug 2008
Posts: 8
c-script.

i think it might be the alpha
how do you cange it?

Re: media to play on panel [Re: rx8boy456] #234303
11/02/08 00:48
11/02/08 00:48
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
well try using a format that doensn't support the alpha channel, like .bmp or .pcx.

You will want something like this...
Code:
var video_handle;
bmap render_screen = "the bitmap.bmp";

panel renderer
{
pos_x=0;
pos_y=0;
layer=1;
bmap = render_screen;
flags = visible;
}

function play_on_bmap()
{
video_handle = media_play("movie.avi",render_screen,100); 
}


Any errors should be little syntax problems, i haven't used c-script for a long time, lol.

Last edited by DJBMASTER; 11/02/08 00:48.
Re: media to play on panel [Re: DJBMASTER] #235137
11/06/08 06:43
11/06/08 06:43
Joined: Aug 2008
Posts: 8
rx8boy456 Offline OP
Newbie
rx8boy456  Offline OP
Newbie

Joined: Aug 2008
Posts: 8
i tried the exact code
i can hear it but no picture comes up
is it something to do with the layers or the bitmap image?


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