Desired Size of Objects Not Considered
Closed this issue · 1 comments
cemalgnlts commented
Context
I have a 64x64 map, but the objects are larger than these dimensions.
I can change the size of the object after adding it to the map:
(In the picture, I changed the Width and Height values of the object to 64x64 to fit the map.)
This size is recorded in the *.tmx
file as follows:
<objectgroup id="3" name="Objects">
<properties>
<property name="excalibur" type="bool" value="true"/>
</properties>
<!-- I edited the dimensions of this object. -->
<object id="8" name="doorIn" gid="32" x="120.095" y="256.191" width="64" height="64"/>
<object id="9" name="doorOut" gid="37" x="440.15" y="256.812" width="64" height="64"/>
<!-- The width and height values of this object are as they should be. -->
<object id="10" name="doorOut" gid="37" x="440.15" y="256.812" width="78" height="96"/>
</objectgroup>
But this change is being ignored.
Proposal
The sprite that the object points to should be found by gid
and if the width
and height
values are not the same, it should take the width
and height
values that the object has.
eonarheim commented
@cemalgnlts Thanks for the issue, I agree the plugin should respect this!
Shouldn't be a tough thing to fix