I want to make the arrows in my top-down zelda-like game to gradually fall using code.
Just like the tears in The Binding of Isaac.
My code isn't working and I have no idea how to make it work properly.
Here is my code:
extends RigidBody2D
var max_range = 50
func _physics_process(delta):
if max_range > 0:
max_range -= 1
if max_range < 35:
self.rotation_degrees += 2
if max_range == 0:
queue_free()