Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Oh hey, do you have any sample code on how to change the video being played dynamically?

I would like to have a different video playing in the scene holding VideoPlayback depending on how it was called.


I am trying to do this as an experiment:

func _ready() -> void:

    Dialogic.signal_event.connect(DialogicSignal)

    get_node("VideoPlayback").set_video_path("res://art/chars/Knight/mansuit.gif")

But this crashes the game when I try to run it.

Any tips?

Run Godot through the terminal with --verbose as this reveals what might be going wrong. I would recommend joining the Discord server as it’ll be easier to figure out a solution since I don’t have any samples readily available atm 😅

I’m planning on adding samples in the nest future though.