extends KinematicBody2D var motion = Vector2.ZERO var type = 4 #func _ready(): # print('bullet gen...') func _physics_process(delta): var collide = move_and_collide(motion*delta) if collide: queue_free() func _on_Timer_timeout(): queue_free()