Videos played by a variable (I think?)

Get help using Construct 2

Post » Sun Nov 06, 2016 3:17 pm

Here's what I would like to do:

Have an array and based on each iteration of that array play a different video. My question is what variable (or how) do I load the variable into the video plug-in (in the Properties window) to get the specific video to play?

I've been loading all sorts of variables into the WebM source, but none of them will load the video file from the array.

Any help or alternative solutions would be very helpful.
B
24
S
10
G
1
Posts: 43
Reputation: 2,288

Post » Sun Nov 06, 2016 4:08 pm

jhjconstruct wrote: My question is what variable (or how) do I load the variable into the video plug-in (in the Properties window) to get the specific video to play?


Image

videoSource.capx
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Sun Nov 06, 2016 4:15 pm

the source has to have brackets. when you set the source your array value when inputted in the video source should have always " " " or " ' " at beginning and end of it ... so the value of source should be called into the source of the video object something similar to this : " " " &array.value &" " " correct me if im wrong anyone! also it might be that korbaach already answered u with the right capx, did not check it before i posted my thought on this.


also the array has to have the value of the link ending with the right extension format(ie. -http://nnn.nnnnn.n/filetoplay.ogg), unless your using the h.264 which can also take youtube links and doesn't need any .ogg,.mp4 extension at end of it.


also on a side note, in order for a local video file to work, you have to have their names in lowercase letters, i found that Big letters such as (A,B,C,D,E etc ) in file names, causes most of platforms but the preview on localhost to not play the video or sound.
B
78
S
23
G
69
Posts: 1,353
Reputation: 44,005

Post » Sun Nov 06, 2016 5:19 pm

To both of you (korbaach and gamecorpstudio) - my gratitude can't be overexagerrated, been working this issue for...I swear 8 hours.
B
24
S
10
G
1
Posts: 43
Reputation: 2,288


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests