Introducing tile map brush macros and autotile #736
+7,603
−341
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have created a system for adding automation to tile map editing that I have called "macros," and to make sure that the system is effective and practical I have created two macros that use the system in different ways.
These macros seem to work excellently 95% of the time, but I have noticed that the autotile macro sometimes goes wrong and I have been unable to understand what causes this or how to trigger it. Hopefully a solution will be found shortly.
Macros are accessible using the tile map brush editor which now has a new "Macros" tab which reveals the macro editor which allows macro instances to be added, removed, and their settings changed. To activate a macro you must select a cell in the brush and add it to the macro to indicate that painting with this brush cell should activate the macro instead of doing normal tile map painting. This can be done in the inspector area of the tile map brush editor.