playwebm function

pepodmc

Active member
Hello.

I tried putting a cutscene in an openbor and it worked:
I added this in the levels.txt

scene data/scenes/scene1/scene1.txt


Then in a folder with the name "scene1" i had the gif files and a scene1.txt with this:

animation data/scenes/scene1/1-1.gif 0 0 0 1
animation data/scenes/scene1/1-2.gif 0 0 0 1
animation data/scenes/scene1/1-3.gif 0 0 0 1
animation data/scenes/scene1/1-4.gif 0 0 0 1
animation data/scenes/scene1/1-5.gif 0 0 0 1
animation data/scenes/scene1/1-6.gif 0 0 0 1



And it worked. Before starting stage 1, the cutscene was played.But then i changed this to:

playwebm    data/scenes/scene1/stage 1.webm



So instead of gifs, the game starts a webm before stage 1, but it didnt work.


Im doing something wrong?

 
Hi pepodmc
For scene "txt" files, the webm function need to be like this:
video data/scenes/credits.webm

For script function "playwebm", need to be like this:
playwebm("data/scenes/intro.webm");

For scene "txt", the command is "video" and for scripts the command is "playwebm". It seems you added a script command version into a "txt" scene.
 
Kratus said:
Hi pepodmc
For scene "txt" files, the webm function need to be like this:
video data/scenes/credits.webm

For script function "playwebm", need to be like this:
playwebm("data/scenes/intro.webm");

For scene "txt", the command is "video" and for scripts the command is "playwebm". It seems you added a script command version into a "txt" scene.


Thanks man!!!

Now its working  ;D

What its the difference  between doing that command by txt and doing it by script?
I mean , what you can do with it doint it by scripts?
 
pepodmc said:
Kratus said:
Hi pepodmc
For scene "txt" files, the webm function need to be like this:
video data/scenes/credits.webm

For script function "playwebm", need to be like this:
playwebm("data/scenes/intro.webm");

For scene "txt", the command is "video" and for scripts the command is "playwebm". It seems you added a script command version into a "txt" scene.


Thanks man!!!

Now its working  ;D

What its the difference  between doing that command by txt and doing it by script?
I mean , what you can do with it doint it by scripts?
Nice, I'm glad it worked! About the function "playwebm" used in scripts, you can use it to play webm videos at any moment you want. The "txt" version has some restrictions, you can call only during some predefined events (like intro.txt, logo.txt) or in the level.txt file
 
Back
Top Bottom