You have to get the Girismuzigim2
node before you can call the play
function. Right now, the Girismuzigim2
variable is null because it has been initialized, but not assigned to anything one way or another.
To fix it, you just need to make some adjustments to your code:
var Girismuzigim1
var Girismuzigim2
func _ready():
Girismuzigim1 = get_node("Girismuzigim1")
Girismuzigim2 = get_node("Girismuzigim2")
func _on_Girismuzigim1_finished():
if (Girismuzigim2 != null):
Girismuzigim2.play()
else:
print ("Could not play sound with Girismuzigim2")
return
That should fix the issue.
This discussion was caught in the moderation queue since you have not confirmed your account yet.
Upon creating your account you should have received an account verification email. The confirmation email may have been incorrectly flagged as spam, so please also check your spam filter. Without confirming your account, future posts may also be caught in the moderation queue. You can resend a confirmation email when you log into your account if you cannot find the first verification email.
If you need any help, please let us know! Thanks! :smile:
Finally: Welcome to the forums! :smile: