Object's Y coordinate and scaling issues with GameMaker room exporter. #1426

Closed
kevintrepanier opened this Issue Jan 5, 2017 · 2 comments

Projects

None yet

2 participants

@kevintrepanier

The room exporter seems to work finely for tiles but have some issues with objects
Issues found :

  • Y coordinate of objects have been changed this way : original Y from Tiled minus the object's height = registered Y in GM room.

  • Scalings are lost (back to 1.00 in GM). (note : I only tried vertical scaling)

@bjorn bjorn self-assigned this Jan 10, 2017
@bjorn
Owner
bjorn commented Jan 10, 2017

Y coordinate of objects have been changed this way : original Y from Tiled minus the object's height = registered Y in GM room.

Right, that behavior is only necessary for tile objects, which have bottom-left origin in Tiled. But the exporter was doing it for all objects.

Scalings are lost (back to 1.00 in GM). (note : I only tried vertical scaling)

Scaling was not supported at all. I'm adding support for scaling tile object instances now.

@bjorn bjorn added a commit that closed this issue Jan 10, 2017
@bjorn GmxPlugin: Fixed positioning and support scaling for instances
The origin correction was being applied to all objects, while it should
only be done for tile objects. Non-tile objects already use a top-left
origin, just like in GameMaker.

Scaled tile objects now have their scaleX and scaleY attributes set up
correctly.

Closes #1426
4f66687
@bjorn bjorn closed this in 4f66687 Jan 10, 2017
@bjorn
Owner
bjorn commented Jan 10, 2017

I've fixed these issues as well as adding exporting of tile objects without type as tile elements (8461607) and adding support for horizontal and vertical flipping (e6d8a32).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment