Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Amigoimaginario |
Hey Please, why the command (seek) don’t working?
The Script:
var cantoTimer
func _on_Yummy_canto():
if sing == 0:
$"Song/Canto".play()
$"Song/Canto".seek(cantoTimer)
sing = 1
func _on_Yummy_realesed():
sing = 0
$"Song/Canto".stop()
timming = $"Song/Canto".get_playback_position()
Sorry a miss in to paste
Is this:
var cantoTimer
func _on_Yummy_canto():
if sing == 0:
$"Song/Canto".play()
$"Song/Canto".seek(cantoTimer)
sing = 1
func _on_Yummy_realesed():
sing = 0
$"Song/Canto".stop()
cantoTimer = $"Song/Canto".get_playback_position()
Amigoimaginario | 2019-09-25 23:36
Your answer may lie in the line $"Song/Canto".stop()
in the on_Yummy_realesed()
function. What could be happening here is that the song is being reset to 0 after being stopped. Have you tried $"Song/Canto".pause()
? You may have more success with that method.
Ertain | 2019-09-25 23:44