Skip to content

Tiles that were rotated in Tiled have wrong hitbox #1695

Closed
@ksetrae

Description

@ksetrae

Bug Report

System Info

Arcade 3.0.0.dev20
vendor: NVIDIA Corporation
renderer: GeForce GTX 1650/PCIe/SSE2
version: (3, 3)
python: 3.9.1 (tags/v3.9.1:1e5d33e, Dec 7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)]
platform: win32
pyglet version: 2.0.5
PIL version: 9.4.0

also pytiled-parser==2.2.0

Actual behavior:

Tiles that were created in Tiled and rotated there have wrong hitbox.

Expected behavior:

Expecting tiles to change hitbox accordingly with rotation.
Would this be difficult to fix? I learned that a bug with incorrect rotation was present in Arcade 3.0.0.dev16, but after switching to dev20 visually it was fixed, but hitbox is still problematic.

Steps to reproduce/example code:

I attached a little project in which you can just run main.py and see that right side of ground sprites has space between them and boxes, these are exactly ones that were rotated.
The left side sprites (unrotated) do have correct hitboxes.
screenshot

tile_hitbox_demo.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions