Hello, I want to pause my sound when on pause menu. I couldn't get "get_tree().paused = true" to pause my sounds, so this is what I tried :
in the pause function :
var pauseposition = get_node("myStreamPlayer2D").get_playback_position();
get_node("myStreamPlayer2D").playing = false;
in the resume function :
get_node("myStreamPlayer2D").seek(pauseposition);
get_node("myStreamPlayer2D").playing = true;
This resume function always restarts my sound at the beginning.
How should the seek() function be used ?
thanks !