-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replace tile object by a tscn file using custom property. #3
Comments
I suggest a new object class 'instance' (for rectangle, polygon, ellipse, point objects) + this custom property for the res file path. |
additionally if tiled object has detected that it has collision shape and has a class of "static" or "area". it should turn into Area2D with Sprite and CollisionShape or StaticBody2D with sprite2D and CollisionShape when imported. this feature is present in vnen's tiled importer. godot-tiled-importer |
Ok, got it. |
Thanks for the clarification, I didn't know that (never dealt with vnen's importer and Godot 3.5). |
v1.2: All suggestions discussed here are implemented now. |
wow! thanks a lot for implementing it. |
im not sure if i should bring this up. this might be a user matter. in tiled the origin position is in lower left corner. while in godot, usually the origin is in the center. or depends on how they create the instance. in my example. the origin of my instance is in the center. when imported. the instance is kinda off. godot x,y position follows the x,y coordinates of tiled which is in lower left corner. would it be possible for you to update so that when imported it will match? im thinking of the godot x,y position should take the tiled X + (width/2) and Y - (height/2). |
For rectangle objects the Tiled origin is the upper left corner. And that's were the .tscn "naturally" is placed and which works in my test examples. If the origin of your instance is not also the upper left corner but the center this of course does not match. |
Its fine, i guess ill just have to edit something on my end. overall the importer works great. Thanks |
using a custom property "resPath" with String value(path of tscn file). when imported, the tile object will be replaced by the tscn file.
The text was updated successfully, but these errors were encountered: