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
3 registered members (AndrewAMD, 7th_zorro, TedMar), 1,243 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
play video #175234
12/29/07 05:21
12/29/07 05:21
Joined: Dec 2007
Posts: 19
colombo, Sri Lanka
kombuwa Offline OP
Newbie
kombuwa  Offline OP
Newbie

Joined: Dec 2007
Posts: 19
colombo, Sri Lanka
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

Re: play video [Re: kombuwa] #175235
12/29/07 09:40
12/29/07 09:40
Joined: Dec 2006
Posts: 47
Wulfgar Offline
Newbie
Wulfgar  Offline
Newbie

Joined: Dec 2006
Posts: 47
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


Zitat eines berühmten Game Designers (name fällt mir gerade nicht ein): "Versuche in deinem Spiel niemals die Realität zu kopieren, wenn du Realität willst schalt denn PC aus und geh vor die Tür"
Re: play video [Re: Wulfgar] #175236
12/31/07 11:28
12/31/07 11:28
Joined: Dec 2007
Posts: 19
colombo, Sri Lanka
kombuwa Offline OP
Newbie
kombuwa  Offline OP
Newbie

Joined: Dec 2007
Posts: 19
colombo, Sri Lanka
thank you very much Wulfgar for your help.
is their is eny thing to include in lite-c(like #include <acknex.h> ).

Re: play video [Re: kombuwa] #175237
12/31/07 12:00
12/31/07 12:00
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline
User
Shadow969  Offline
User
S

Joined: Oct 2006
Posts: 873
sure, include acknex.h and default.c (if i remember correctly)

Re: play video [Re: Shadow969] #175238
01/01/08 04:57
01/01/08 04:57
Joined: Dec 2007
Posts: 19
colombo, Sri Lanka
kombuwa Offline OP
Newbie
kombuwa  Offline OP
Newbie

Joined: Dec 2007
Posts: 19
colombo, Sri Lanka
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..!

Last edited by kombuwa; 01/01/08 05:10.
Re: play video [Re: kombuwa] #175239
01/01/08 07:14
01/01/08 07:14
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
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);
}




smile
Re: play video [Re: D3D] #175240
01/02/08 03:27
01/02/08 03:27
Joined: Dec 2007
Posts: 19
colombo, Sri Lanka
kombuwa Offline OP
Newbie
kombuwa  Offline OP
Newbie

Joined: Dec 2007
Posts: 19
colombo, Sri Lanka
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);
}




Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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