Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a New TmxEntity Freezes Flash Player #27

Open
SolarLune opened this issue Feb 25, 2014 · 1 comment
Open

Creating a New TmxEntity Freezes Flash Player #27

SolarLune opened this issue Feb 25, 2014 · 1 comment

Comments

@SolarLune
Copy link

Hello. I'm getting a bug in which the Flash Player freezes if I create a new TmxEntity and compile to Flash. I'm using the latest Haxe (3.0.1) and HaxePunk downloaded from HaxeLib (2.5.1). The Tmx Library is also from HaxeLib (1.0.2).

@mikehuebner
Copy link

I am having a similar issue, it seems this library uses an outdated XML version according to Tiled. Trying to come up with a solution but so far no luck.

It requires the height and width of the object (as if they were individual objects) for it to read the file. So instead of have a group and a subgroup you need to do each group individually and then edit the XML to apply the W x H to each overall group.

New Format

<objectgroup name="solid">
  <object type="solid" x="63" y="710" width="187" height="22"/>
  <object type="solid" x="226" y="743" width="186" height="20"/>
  <object type="solid" x="424" y="748">
   <polyline points="0,0 42,31 114,37 182,-11"/>
  </object>
 </objectgroup>

Old Format (this lib requires)

<objectgroup name="solid"  width="187" height="22">
  <object type="solid" x="63" y="710" width="187" height="22"/>
 </objectgroup>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants