Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | fish2091852127 |
A tileMap created on a child node,it’s origin start by top-left corner of the child node when drawing tiles in engine. But when it starts running, its origin changes to be calculated from the top left corner of the main scene when used “get_cellv()”
(Use mouse detection methods :
get_cellv(world_to_map(get_global_mouse_position) ).
How do I get the tilemap origin to start at the top left corner of the child node?
ps: the child node is Control node,It is used in automatic alignment of VBoxContainer