XLIVE99 / AutoGrid

Autotile system for gridmap in godot engine
MIT License
55 stars 3 forks source link

AutoGrid

Version 1.3

AutoGrid is an autotile system for the GridMap node in the Godot Engine. AutoGrid works similar to the TileMap node.

Installation

  1. Copy the "addons/AutoGrid" folder to your "addons" folder in the project directory. If you don't have any "addons" folder you can create it.
  2. Set the AutoGrid as active in "Project>Project Settings>Plugins".

    Usage

    All AutoGrid settings are in the AutoGrid dock panel which is in same tab as the inspector panel.

    Setting the bitmasks

  3. Set the scene as shown in Creating a MeshLibrary.
  4. Enable the "Edit Mode" from the AutoGrid panel then select a MeshInstance you want to create the bitmask of it.
  5. You will see a button named "AutoGrid" on top of the scene panel.
    • Create Bitmask: Creates a bitmask for the selected MeshInstance.
    • Remove Bitmask: Deletes the bitmask of the selected MeshInstance.
    • Expand Bitmask: Expands the bitmasks.
    • Shrink Bitmask: Shrinks the bitmasks.
    • All Axises: Shows the full bitmask.
    • Y & Z Axises: Shows Y & Z axises of the bitmask (Global X).
    • X & Z Axises: Shows X & Z axises of the bitmask (Global Y).
    • X & Y Axises: Shows X & Y axises of the bitmask (Global Z).
    • Set Icon: Sets the icon for the AutoGrid tile to be created (Default is the first child of the scene, selected icon will be shown as blue transparent sphere).
  6. After creating the bitmask you can simply paint it by clicking on white cubes, painted cubes will become red. Click on the cube again to disable it.

    Creating autotile info

    After setting all the bitmasks. Click to "Create Autotile Info" button located in the AutoGrid panel. Then create MeshLibrary again and you are ready to go! The autotile system will work now.

Read "addons>AutoGrid>HELP.pdf" for more information

Settings

Demo project

Demo project is designed for only Y axis and minimal 3x3 mode, make sure you selected "Minimal 3x3" from the "Autotile Mode" and "Only Y" from the "Autotile Axis".
You can open the "Demo_Scene.tscn" and start painting. For better visual you can rotate the tile to look upward by pressing "A".

Resources used at demo

Limitations