Skip to content

Hitbox generation doesn't support multiple hitboxes from one texture #2457

Open
@Dwang-ML

Description

@Dwang-ML

Bug Report

Hitboxes can not be seperated, meaning multiple hitboxes cannot be be generated from one texture.

System Info

Arcade 3.0.0.dev39

vendor: Apple
renderer: Apple M2
version: (4, 1)
python: 3.12.3 (v3.12.3:f6650f9ad7, Apr 9 2024, 08:18:47) [Clang 13.0.0 (clang-1300.0.29.30)]
platform: darwin
pyglet version: 2.1.rc1
PIL version: 11.0.0

Actual behavior:

ML 2024-11-17 at 7 11 22 PM

Let everything in RED be the image and everything that is not red be transparent. If the hitbox is calculated for a png like this, arcade draws the hitbox as shown in blue.

Expected behavior:

ML 2024-11-17 at 7 11 56 PM

Instead of the behavior shown in Actuall behavior, there should be a option to seperate hitboxes as shown in the image above.

Steps to reproduce/example code:

Simply have a png with a few seperate shapes and let arcade calculate the hitbox.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions