tiled icon indicating copy to clipboard operation
tiled copied to clipboard

Add support for scaling (xScale and yScale)

Open jrz opened this issue 11 years ago • 8 comments

In addition to the recently added rotation, I'd like to suggest xScale and yScale. This automatically allow both horizontal and vertical flip.

jrz avatar Mar 26 '13 09:03 jrz

My usecase is that I have a pretty 'loose' decoration map, and re-use images by rotating and scaling.

jrz avatar Mar 26 '13 09:03 jrz

I second this feature request! Seems like a simple way to add value :)

gamedevsam avatar Mar 26 '13 14:03 gamedevsam

I obviously agree that Tiled should have support for scaling objects, but I will have to disagree with the statement that it is "simple". First of all the behavior on the currently available object types would have to be defined, secondly the interaction with the rotation. I assume you mean to apply scale before rotation, but is this enough? One you have scaling and rotation, you're pretty close to the full transformation matrix after all. And once we know how it will work from storage, rendering and usability perspectives, it will of course still need to be implemented.

bjorn avatar Apr 09 '13 19:04 bjorn

I'd be willing to work on this feature, I've been doing this through properties anyway. It would be pretty awesome to actually see how it would look without having to fire up my game engine. I've got a school break coming up.

gamaral avatar Apr 09 '13 19:04 gamaral

@gamaral Feel free to have a go at it, but please elaborate on how you plan to do it once you get started to make sure we're on the same page. Thanks!

bjorn avatar Apr 09 '13 20:04 bjorn

That's the plan. ;)

gamaral avatar Apr 09 '13 21:04 gamaral

There are still no scaling properties, but all supported types of objects can be resized now. Does that resolve this request, @jrz?

bjorn avatar Apr 30 '16 20:04 bjorn

I second this feature request. Scaling objects inside Tiled is great, but it'd be so awesome to be able to export scaling properties by selecting an option. On your forum it was suggested I should write a whole export module for this, but that's a giant amount of effort for someone unfamiliar with the whole environment. (I did read the sections about it, but estimated it'd take me many hours or even days to understand that.) It sounds like a really easy feature to implement in a menu in Tiled somewhere and it'd make Tiled so much more useful for all of our games.

DysprosiumDy avatar May 21 '22 19:05 DysprosiumDy