How do I set AudioStream to start for a point that is not begining of the audio

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

I’m not understanding how declare void play ( float from_position=0.0 ) method properly.

Thanks guys

:bust_in_silhouette: Reply From: damncoder

You can use:

get_node("sound").seek(offset_in_seconds)
get_node("sound")._set_playing(true)

Or:

get_node("sound").play(offset_in_seconds)

tested second method and works. thanks!

lucasfazzi | 2019-04-07 22:52