Attention | Topic was automatically imported from the old Question2Answer platform. | |
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