My script that makes it when you collide w/ a area2D, the mouses position gets set back to 0, 0. But I keep getting the error: Cannot call method ‘warp_mouse’ on a null value.
const set = Vector2(-20, -20)
func _on_area_entered(area):
get_tree().reload_current_scene()
get_viewport().warp_mouse(set)
I have no clue what else to try, any help is greatly appreciated.