play video

Posted By: kombuwa

play video - 12/29/07 05:21

hi all,

i am newbie to lite-c . their is eny way to play video in sid of A7 engin or
play a video start of game (like a logo animation).plese help me.

thanks
Posted By: Wulfgar

Re: play video - 12/29/07 09:40

First at all Welcome in the Forum.
That is easy tip this Line in your Main Function
Code:
media_play("logo.wmv",NULL,100);  


logo.wmv is your Videofile. If you load a level in the Main Function must you set a wait before playing the Video

Greetings Wulfgar


Sorry for my bad English i am from Germany
Posted By: kombuwa

Re: play video - 12/31/07 11:28

thank you very much Wulfgar for your help.
is their is eny thing to include in lite-c(like #include <acknex.h> ).
Posted By: Shadow969

Re: play video - 12/31/07 12:00

sure, include acknex.h and default.c (if i remember correctly)
Posted By: kombuwa

Re: play video - 01/01/08 04:57

Code:

#include <acknex.h>
#include <default.c>

function main(){


media_play("clock.avi",NULL,100);



wait (200);

level_load('first02.wmb');

}


//=====================================================
hi all,

this is the code i have coded.
but this one not working. plese help me..!
Posted By: D3D

Re: play video - 01/01/08 07:14

Lite-C Code:
#include <acknex.h>

STRING* level_str = ""; // yourlevelname.wmb

var avi_handle;

function main()
{
level_load(level_str);
wait(2);

avi_handle = media_loop("stardust.avi",NULL,75);
}


Posted By: kombuwa

Re: play video - 01/02/08 03:27

thank you D3D and all of you it is working. but jest change code i have to include default.c .this is the code.

Code:

#include <default.c>
#include <acknex.h>


var avi_handle;

function main()
{

wait(2);

avi_handle = media_loop("2.wmv",NULL,75);
}


© 2024 lite-C Forums