![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | anas782 |
extends Area2D
var collecting_times = 0
func _ready():
$AnimationPlayer.play(“move”)
collecting_times = 0
pass
signal coin_collected
func _on_coin_body_entered(body):
collecting_times += 1
if collecting_times == 1:
emit_signal(“coin_collected”)
$AudioStreamPlayer.play()
pass # Replace with function body.
func _on_AudioStreamPlayer_finished():
queue_free()
pass # Replace with function body.
Format the code properly with {}
option and paste the error message…
Inces | 2022-12-30 11:47
You don’t even tell us what the error code is?
SteveSmith | 2022-12-31 15:38