Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (M_D), 1,501 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Play Media #79457
06/26/06 06:21
06/26/06 06:21
Joined: Jun 2006
Posts: 24
Viet Nam
tphsports Offline OP
Newbie
tphsports  Offline OP
Newbie

Joined: Jun 2006
Posts: 24
Viet Nam
i'm a new man of 3DGS, i'd like to play a video before load level. i tryed very many times......but nothing........Can you all show me the way to do?i would very very thank forthat........help me, please........


TPH's Game
Re: Play Media [Re: tphsports] #79458
06/26/06 14:10
06/26/06 14:10

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Hi!

Use media_play(string,bmap,volume).
Read the manual for using it.

Example:
Code:

function main{
var lv_hdl;

video_switch(8,32,1); // set videomode
lv_hdl = media_play("movie.avi",null,100); // play movie in fullscreen

while(media_playing(lv_hdl)==on && key_pressed(1)==off){wait(1);} // wait or break

media_stop(lv_hdl);

level_load(...);

...
}



~ not tested! ~

mercuryus

Re: Play Media [Re: ] #79459
06/28/06 05:55
06/28/06 05:55
Joined: Jun 2006
Posts: 24
Viet Nam
tphsports Offline OP
Newbie
tphsports  Offline OP
Newbie

Joined: Jun 2006
Posts: 24
Viet Nam
Thank mer but i did follow this way, nothing happened.........bad........i use cscript in template and copy this script in end-script. so what wrong? (i showed path to avi),can you show me more?or share me some example for that? thank much...mer


TPH's Game
Re: Play Media [Re: tphsports] #79460
06/28/06 16:20
06/28/06 16:20
Joined: Dec 2004
Posts: 306
Planet Earth
Wiz Offline
Senior Member
Wiz  Offline
Senior Member

Joined: Dec 2004
Posts: 306
Planet Earth
Code:
 

var lv_hdl; video_switch(8,32,1); // set videomode
lv_hdl = media_play("movie.avi",null,100); // play movie in fullscreen
while(media_playing(lv_hdl)==on && key_pressed(1)==off){wait(1);} // wait or break
media_stop(lv_hdl);


You should drop this part of mercuryus' script into your main function, he has chosen to put it before the level_load(); function in his script. I haven't tested it either, but it should play the movie.avi file.

Last edited by Wiz; 06/28/06 16:21.
Re: Play Media [Re: Wiz] #79461
06/29/06 06:32
06/29/06 06:32
Joined: Jun 2006
Posts: 24
Viet Nam
tphsports Offline OP
Newbie
tphsports  Offline OP
Newbie

Joined: Jun 2006
Posts: 24
Viet Nam
oh i'll try again! thank Wiz


TPH's Game

Moderated by  HeelX, rvL_eXile 

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