-
-
Notifications
You must be signed in to change notification settings - Fork 65
Adding Objects to Tiled
If you don't have much experience with Tiled or this type of editor, things may seem a little overwhelming and confusing at first. This will be a step by step guide to add your new object or enemy to Tiled after you have the scene made in Godot.
First you want to load up the map (Will be using maps/overworld.tmx for this tutorial)
Now locate the objects file inside the tiled folder
Add a new tile to the objects list
It will ask you for an image to use. This will be a 16x16 icon you need to make of your object and store it in tiled/images/objects Note: This has NOTHING to do with your final object. It is used in Tiled as a representation of your object on the map.
See image
Okay, now that your object is in the editor, we need to add a new property to tell the game where the scene is located. Select your object and add a property
On the bottom left corner of the editor for me
We need this to be a string named path.
This object has a couple other parameters, but you should end up with something like this.
Now, go back to the overworld.tmx tab and select the objects layer.
Under the layers you should see some tileset options. Click through until you find objects.
You should see your new object here!
If you havent already, make sure you are snapping your objects to the grid with these settings.
All thats left is to press T or click the insert tile button on the task bar.
It should let you place your object on the map now.
After you place your object you can save the map and return to godot. It should automatically import everything you just did in tiled. Playing the game will reflect these changes.
Have fun!