7 lines
173 B
GDScript
7 lines
173 B
GDScript
extends RigidBody2D
|
|
|
|
|
|
func _on_body_entered(body: Node) -> void:
|
|
print("aaa")
|
|
if abs(linear_velocity.x) > 200 or abs(linear_velocity.y) > 200:
|
|
%AudioStreamPlayer.play()
|