Hi!
Currently I am trying to make a building game and fortunately I am able to move one building to other place but now I am stuck. I cannot figure out how can I prevent one building from occupying the position where a building already exists.
EDIT:- My buildings are STATICBODY2D
I am moving my buildings as follow:-
func _process(_delta):
position = get_global_mouse_position()
Should I use any other way if yes then which and how?
Thank You in advance!