Import and play transparent background explosion video when clicked

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Suleymanov

Hi. I wonder if there is a way to import any type of video file to Godot? My purpose is to play transparent background explosion video once fired (clicked).


Just found about the VideoPlayer node that plays webm file.

  1. Can I remove green background? (Need transparent background)
  2. Can I control the position of the VideoPlayer to play at the location I click?
  3. Can I control the time it should play from to? Can I randomize the play time? (I have 4 explosions in a row, I want to randomize which one is played each time I click).

Suleymanov | 2020-10-18 19:43

:bust_in_silhouette: Reply From: Suleymanov

Found the solution. Rendered each frame as PNG in Sony Vegas. Then assembled all into AnimatedSprite node.