Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
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
2 registered members (Ayumi, 1 invisible), 584 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
AVI-File in PANEL Background #11466
01/08/03 05:23
01/08/03 05:23
Joined: Jan 2003
Posts: 54
californa
S
Stan_dup1 Offline OP
Junior Member
Stan_dup1  Offline OP
Junior Member
S

Joined: Jan 2003
Posts: 54
californa
Does anyone knows script or a way to put AVI-File in Panel background instead of image??

Thanks in Advance..

Re: AVI-File in PANEL Background #11467
01/10/03 23:54
01/10/03 23:54
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
I've just sent you a private message [Smile] .
Hope you know how to get 'em [Wink] .

Yours, Jey Key.

PS: I'm 14 years old, so I'd find it nice if you comment my english [Big Grin] .

Re: AVI-File in PANEL Background #11468
01/11/03 01:42
01/11/03 01:42

A
Anonymous
Unregistered
Anonymous
Unregistered
A



quote:
Originally posted by Jey Key:
I've just sent you a private message [Smile] .
Hope you know how to get 'em [Wink] .

Yours, Jey Key.

PS: I'm 14 years old, so I'd find it nice if you comment my english [Big Grin] .

Yes your english is like the english of....... other 14 year old pupils. [Big Grin] [Big Grin]

Re: AVI-File in PANEL Background #11469
01/11/03 02:44
01/11/03 02:44
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
What do you want to say with this? I'm very good in english! I had a 1 for 5 years! [Big Grin]

Re: AVI-File in PANEL Background #11470
01/11/03 04:23
01/11/03 04:23
Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
TripleX Offline
Expert
TripleX  Offline
Expert

Joined: Oct 2002
Posts: 4,753
Munich, Bavaria, South of Germ...
quote:
Originally posted by Jey Key:
I had a 1 for 5 years! [Big Grin]

whaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaat??
I have a 5 for 4 years [Big Grin] [Big Grin]
mfg
tripple-X

Re: AVI-File in PANEL Background #11471
01/11/03 09:22
01/11/03 09:22
Joined: Jan 2003
Posts: 54
californa
S
Stan_dup1 Offline OP
Junior Member
Stan_dup1  Offline OP
Junior Member
S

Joined: Jan 2003
Posts: 54
californa
Thanks Jey Key [Big Grin]

Re: AVI-File in PANEL Background #11472
01/11/03 22:35
01/11/03 22:35
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
Hi you!

Tripple-x: Wie alt bisch du? (und hasch du wirklich 5-er gehabt, oder war des 'n Witz?)

Stan: I'll send you an other pm! Hope that I can help you.

Re: AVI-File in PANEL Background #11473
01/12/03 02:10
01/12/03 02:10
Joined: Oct 2002
Posts: 241
Frankfurt umgeb.
ju$t_(h@0$ Offline
Member
ju$t_(h@0$  Offline
Member

Joined: Oct 2002
Posts: 241
Frankfurt umgeb.
@ Jey key:
wenn s dir nix ausmacht: kannsde mir bitte auch daß script geben?


FIGHTING for peace is like FUCKING for virginity
Re: AVI-File in PANEL Background #11474
01/12/03 03:11
01/12/03 03:11
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
Ich schreib' den code ganz einfach hier ins forum, dann kann ihn jeder einsehen (und kommentieren oder verbessern, wenn ihm was auffällt [Big Grin] ):

So, how can you create your panel?
You need a paint program like windows paint, it mustn't be something special.
Look, your video has a resolution, e.g. 320x240, if it's an other resolution, replace all what I say with your one.
Now you create a picture with this resolution, and save it in the .pcx or the .bmp-format (no .tga files!).

Now, enter into your script file:

Deutsch:
Du brauchsch 'n Malprogramm wie Windows Paint, des muss nix besonderes sein.
Dein Video hat jetzt eine bestimmte Auflösung, 320x240 zum Beispiel. Wenn's ne andere hat, eben damit ersetzen. Jetzt machst du ein Bild mit dieser Auflösung und speicherst es im .pcx oder im .bmp-Format (keine .tga-Dateien!).

Dann trägst du in dein Scriptfile ein:


code:
entity avi_bg_panel{
type = <yourfile.pcx>; //or .bmp, your format
layer = 2; // like the panel layer
flags = visible; // like the panel-visible-parameter (don't try to set refresh or d3d here!)
view = CAMERA; // Your camera x = 100; // Distance to the view
y = -50; // 50 to the right
z = 0; // in the middle (vertical)}

NOTE:
the x parameter sets the distance to the view
the y parameter sets the horizontal position (0 is in the middle)
the z parameter sets the vertical position (0 is in the middle)

you can converse with this entity like you do with a panel:
avi_bg_panel.visible = off for example sets it invisible.

Now, add the avi-play-code after the entity-code:

Deutsch:
Der x-Parameter gibt die Distanz zwischen Kamera und Entity an.
Der y-Parameter die horizontale Position (0 entspricht der Mitte).
Der z-Parameter die vertikale Position (0 entspricht der Mitte).

Mit dieser Entity kann man jetzt wie mit einem Panel kommunizieren:
avi_bg_panel.visible = off macht sie zum Beispiel unsichtbar.

Jetzt schreibst du den avi-spiel-code nach der Entity-Definition in dein Script-File:


code:
define avi_bg_volume, 0;// Defines the volume for your video. I'd set it to 0.

var avi_bg_file_handle;

function set_avi_playing()
{
ent_preload(avi_bg_panel);
wait(3);
media_loop("yourvideo.avi", bmap_for_entity(avi_bg_panel, 0), avi_bg_volume);
avi_bg_file_handle = media_handle;
}

function stop_avi_playing()
{
media_stop(avi_bg_file_handle);
}

NOTE:
your files must be in your game-directory, otherwise they wouldn't be found!
you must own 3dgs commercial v.5.51!

Until the position of the panel isn't correct you have to change the x, y and z parameters (I can't say you specified values)!

I hope I helped you with this code!

(Excuse my english)

Deutsch:
Achtung:
Deine Dateien müssen in deinem Spielpfad liegen, damit sie gefunden werden.
Du musst die GameStudio Commercial v.5.51 besitzen!

Du musst die x, y und z-Parameter so lange verändern, bis sie deinen Anforderungen entsprechen (Ich kann dir jetzt hier keine bestimmten Werte angeben.).

Hoff', dass ich euch mit dem Code helfen konnte!

(Entschuldigt mein Englisch!)

Grüßle, Jey Key.

PS: Wenn der Code euch hilft, könntet ihr mir ja 'n paar Sterne geben... *giergier* [Big Grin] .
PPS:
Ich find den Smiley voll süß:
[Big Grin] [Big Grin] [Big Grin] [Big Grin] [Big Grin]

Re: AVI-File in PANEL Background #11475
01/12/03 08:25
01/12/03 08:25
Joined: Jan 2003
Posts: 54
californa
S
Stan_dup1 Offline OP
Junior Member
Stan_dup1  Offline OP
Junior Member
S

Joined: Jan 2003
Posts: 54
californa
Jey Key check your Messages when you'll have time.

Page 1 of 2 1 2

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