I am not able to remove tiles from my game (2d)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Fumbling Welli
func removetile():
#vloc is the absolute position of the cursor
  var mouse_pos = $crosshair.global_position
  var loc = Vector2(stepify(mouse_pos.x/16, 1), stepify(mouse_pos.y/16, 1))
  var vloc = Vector2(loc.x+8,loc.y)
  if get_cellv(vloc) == -1:
	 set_cellv(vloc, 0)

Should I have to use -1 instead of 0 in set_cell(vloc, 0) ? If yes THEN I HAVE ALREADY TRIED IT
. And here 0 represents the tile which is a blank tile but it dosnt works again

:bust_in_silhouette: Reply From: Fumbling Welli

Ok I solved it with removing -1 in if get_cellv(vloc) == -1: and changing it to 1