Question
Guys theres a function called “set_cell” but is there any option to erase cells like Coding with Rus did in his first automation game devlog. I am making currently a factory game so i need erasing in my game. Any help will be appreciated.
Guys theres a function called “set_cell” but is there any option to erase cells like Coding with Rus did in his first automation game devlog. I am making currently a factory game so i need erasing in my game. Any help will be appreciated.
If you mean erasing with “easing” I will quote the documentation for set_cell:
If source_id is set to -1, atlas_coords to Vector2i(-1, -1) or alternative_tile to -1, the cell will be erased. An erased cell gets all its identifiers automatically set to their respective invalid values, namely -1, Vector2i(-1, -1) and -1
Thanks, let me check if it works.
It doesn’t work, maybe i did something wrong. Maybe you can fix it. Anywas i sent you an picture of the code.
Make sure you’re erasing from the same layer where you have your tile located in. As far as I can see, you create tiles on layer 0 but delete them on layer -1. So these two should be equal.
O yep, thanks, it worked. Now i need to rotate it, make an AStar grid. Fricking hell.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.