So, i have this problem. I'm trying to make a StaticBody2D to detect a collision, and when it does so i want to play an animation, that's it. But it gives me this error (Invalid call. Nonexistent function 'is_colliding' in base 'CollisionShape2D')
Please help!!!
My code is the following :
extends StaticBody2D
func physicsprocess(delta):
if $CollisionShape2D.is_colliding():
$AnimationPlayer.play("Shit")
else:
$AnimationPlayer.play("Walk")