Skip to content

Rotated objects in Tiled appear in the wrong location #1805

Closed
@bunny-therapist

Description

@bunny-therapist

Bug Report

System Info

Arcade 3.0.0.dev20

vendor: Intel
renderer: Intel(R) UHD Graphics
version: (3, 3)
python: 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)]
platform: win32
pyglet version: 2.0.6
PIL version: 9.4.0

Tiled 1.9.2

Actual behavior:

An object which in Tiled is rotated by 90 degrees appears at a position (-1,+1) relative to where it is placed in Tiled. An object roated by -90 degrees appears at (+1,-1).

Expected behavior:

A rotated tile appears in an arcade game in the same position as it does in Tiled.

Steps to reproduce/example code:

Create a map in Tiled. Place an object at a position. Rotate it by 90 degrees by editing its properties in Tiled. Load it using arcade.load_tilemap and view the results. Compare the position of the object with where it appears in Tiled.

(I am aware this might possibly be a bug in pytiled-parser rather than arcade, but it is hard for me to determine, so I will create an issue here. If we are sure this is in pytiled-parser, I can create an issue there instead if needed.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions