简体   繁体   English

TILED编辑器 - 可以在对象层中对齐网格对象放置?

[英]TILED editor - object placement possible to snap to grid in Object Layer?

thanks again in advance for any time spent helping me. 再次感谢您提前帮助我。

Thankfully, I have been able to import TMX to libgdx game without much of a problem, however this is now the first time of using Object Layer, for which at this moment in time I only want to include Platforms as the object (ie. I have 1x Tile Layer showing my background image and 1x Object Layer above). 值得庆幸的是,我已经能够在没有太大问题的情况下将TMX导入到libgdx游戏中,但是现在这是第一次使用对象层,此时此刻我只想将平台作为对象(即我有1x Tile Layer显示我的背景图像和上面的1x Object Layer。 Now I've seen that I can just draw lines and/or boxes, circles etc to create 'zones' which I can pull into my code (goodness only knows how atm but I'll figure that later/soon ) 现在我已经看到我可以绘制线条和/或方框,圆圈等来创建“区域”,我可以将其拉入我的代码中(善良只知道atm但我会稍后/很快就会知道)

But I see in Tiled that the button - Insert Tile (T) - exists. 但我在Tiled看到按钮 - 插入平铺(T) - 存在。 I'm trying to use it but when the tile im using as a platform is placed it goes exactly where the mouse is pressed and I can't move it other than delete it. 我正在尝试使用它,但是当我使用平台作为平台放置它时,它正好在按下鼠标的地方,除了删除它之外我无法移动它。 I'd just like to copy-paste a whole row of them for now and Level1 can just be 50 tiles in a flat line just so I can get it all working. 我现在只想复制粘贴它们的一行,而Level1只能在一条扁平线上放置50个瓷砖,这样我才能完成所有工作。 It seems weird to me that Tiled can't do this but Ive spent ages looking for a way and can't find it. 对我来说,Tiled不能做到这一点似乎很奇怪,但我花了很多年的时间寻找方法却无法找到它。

Am I missing something or is this just not possible? 我错过了什么,或者这是不可能的? And if the latter, how does an experienced tiled user (who's making a 2d platformer) go about creating such a simple example above in the Tiled environment? 如果是后者,经验丰富的平铺用户(谁制作2d平台游戏)如何在Tiled环境中创建如此简单的示例呢?

What a noob - I answered my own question. 什么是菜鸟 - 我回答了我自己的问题。 The option I needed was in the 'View' dropdown menu -> 'Snap To grid' LOL 我需要的选项是在“查看”下拉菜单中 - >“对​​齐网格”LOL

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM