[PLUGIN] TMX importer

Post your completed addons to share with the community

Post » Thu Jul 11, 2013 3:23 am

@7Soul

Yes. flipped + mirrored = rotate 180 degree in tmx exported file.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Thu Jul 11, 2013 4:10 am

But 180 is looking the same as 0. The point is that there is a discrepancy between Tiled and the plugin
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Thu Jul 11, 2013 7:57 pm

Yeah it looks like instead of flipping the tiles it flips the positions of the tiles..or something. I've tried changing the hot spot and a few other things but nothing works. It worked perfectly a few builds ago...
Tokinsom2013-07-11 20:06:00
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Sun Jul 14, 2013 12:46 am

@Tokinsom

Sorry, I could not reproduce this bug, could you give me a simple test tmx file? (include picture file)
In my test, the tile could be flipped correctly. So I updated the tmx importer plugin.rexrainbow2013-07-14 00:50:20
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Sun Jul 14, 2013 12:49 am

@7Soul

Sorry, my mistake.
If the tile was flipped + mirrored, it would be the same as rotate 90 degree. (not 180, my mistake)

And I could not reproduce this problem too, could you give me a simple tmx file? include picture file so that I could open it in tmx editor.
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Mon Jul 15, 2013 1:55 am

I made this test:



Flipped + Mirrored: looks the same as normal. ONLY mirrored or ONLY flipped works as usual
90 Degrees: looks like it rotated counter-clockwise

So, flipped + mirrored is not the same as 90 degrees

These are the events:

B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Mon Jul 15, 2013 8:16 am

@7Soul
@Tokinsom

I see. I had updated plugin again, please try it.
Thank you for pasting the event code.rexrainbow2013-07-15 08:18:52
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Mon Jul 15, 2013 7:24 pm

Looks like it's working perfectly now ^^ Good job
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Mon Jul 15, 2013 9:21 pm

I actually got it working by setting 2 PVs to TMXImporter.IsMirrored/Flipped then flipping/mirroring them in another event if they weren't. I'll check out the update though :)Tokinsom2013-07-15 21:22:34
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Mon Jul 22, 2013 5:44 am

Add a diagram of execution flow in the first post.


Hope it could help users.rexrainbow2013-07-22 07:19:44
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: tnn112710 and 1 guest