Bruce
Active member
Hello all,
I started learning about webm function, but I am having an issue where the Webm video displays a black screen for a few seconds after it finishes.
As you can see the code below that I want to summon Shiva with @cmd playwebm "data/scenes/Shiva.webm" 0
then spawn the ShivaFX entity to damage the enemies on the screen.
It is working as intended, but the problem is
there is a black screen shown up for a few seconds after the webm video finishes which causes frames #1 to xx in the ShivaFX entity to skip or play during the black screen.
Basically, the ShivaFX entity only plays somewhat the 2nd half of the animation.
How do I prevent the black screen to show up after the webm video?
I hope it makes sense, thank you for your help.
I started learning about webm function, but I am having an issue where the Webm video displays a black screen for a few seconds after it finishes.
As you can see the code below that I want to summon Shiva with @cmd playwebm "data/scenes/Shiva.webm" 0
then spawn the ShivaFX entity to damage the enemies on the screen.
It is working as intended, but the problem is
there is a black screen shown up for a few seconds after the webm video finishes which causes frames #1 to xx in the ShivaFX entity to skip or play during the black screen.
Basically, the ShivaFX entity only plays somewhat the 2nd half of the animation.
How do I prevent the black screen to show up after the webm video?
I hope it makes sense, thank you for your help.
Code:
anim freespecial1
hitflash bflash
hitfx data/sounds/beat2.wav
sound data/chars/alex/CallShiva.wav
delay 5
offset 49 65
frame data/chars/alex/01.gif
delay 5
offset 65 69
frame data/chars/alex/02.gif
delay 7
offset 73 78
frame data/chars/alex/03.gif
bbox 79 18 24 83
delay 2
offset 83 96
@cmd playwebm "data/scenes/Shiva.webm" 0
frame data/chars/alex/04.gif
@cmd projectile 1 "ShivaFX" 0 0 0
delay 5
frame data/chars/alex/04.gif