Hello. I have a problem with voice in my quest. In this code speech comes together with dialog:
function board_1:on_interaction()
game:start_dialog("board.hello")
sol.audio.play_sound("ok")
end
But I need to start "ok" speech only after "board.hello" dialog will end. What I must to do with this code?
game:start_dialog() takes an optional second parameter of type function, that will be called when the dialog finishes. In other words:
function board_1:on_interaction()
game:start_dialog("board.hello", function()
sol.audio.play_sound("ok")
end)
end
Christopho, yes, it works! I'm noob. Thank you so much :D