Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | potatobanana |
what i want to do is, i want something node detect all cell under it.
for example,
tileset cell size = x32,y32
if i have sprite_node size x96,y96
then i put my sprite_node position = world_to_map(get_global_mouse_position())
if i click and all cell under sprite_node is id==4 :
print(“ok”)
if not:
print(“fail”)
how should i do it?
what node should i use it?
what i try to achieve, is something like game “age of empires” or “stardew valley”. when i need to put building i need certain space/cell.