This is an idea for a setting in the editor that would allow you to place objects without any regard for the grid. Basically, you can place an object anywhere on the map, centered on wherever you click. It'll locate the nearest tile and place the object on that tile, and then it'll adjust the object's pixel offsets to compensate and position the object where you actually want it.
Of course, that would require that the map editor first recognize object pixel offsets to begin with...
Just a thought.
ID:132787
![]() Oct 23 2009, 9:27 pm
|
|
This was also mentioned in here
|
I think the easiest way of doing this is like so
-Instead of drawing the 'selection square' wherever the grid is; if 'snap-to-grid' is disabled, it will draw it wherever the mouse cursor is. -THEN, when you click with the mouse, it detects the tile you clicked on, then sets the pixel_x and pixel_y of the object you placed equal to the distance between the 'exact center' of the tile to the position of where the mouse click took place. -I suppose you could have some leniency and have there be a small distance from the center where the maker assumes you're trying to click the center and sets both offsets to 0. For that kind of exact precision, though, to only be a few pixels from the center, you could then use the 'nudge' feature already in v455 |
The only downside is, well, with 'snap-to-grid' disabled, it would probably only be able to detect single clicks. I can't imagine what would happen if someone held down the mouse button and dragged the cursor around the editor with that disabled
_> |
The v.455 map editor recognizes pixel offsets and lets you "nudge" objects into place. However, your idea is probably a nicer way to do things. We'll give it some thought.