Skip to content

Tilemap hitboxes are not generated correctly at position x = 0, y = 0 #8191

@PANDAKO-GitHub

Description

@PANDAKO-GitHub

Is there an existing issue for this?

Describe the bug

When a Tilemap object in GDevelop is positioned at x = 0, y = 0, its hitboxes are not generated correctly.
As a result, collisions do not behave as expected.

This issue can be observed in the GDevelop sample game “Duck Game”, for example in level 3.

Steps to reproduce

  1. Open the sample game “Duck Game”.
  2. Open the level 3 scene.
  3. Observe the Tilemap object placed at position x = 0, y = 0.
  4. Check the Tilemap hitboxes and the Platformer behavior.
  5. Preview the scene and confirm that the hitboxes are not generated correctly.

GDevelop platform

Web

GDevelop version

5.6.253

Platform info

Windows 11
Chrome

Additional context

  • This issue only occurs when the Tilemap position is exactly at x = 0, y = 0.
  • Moving the Tilemap slightly away from this position appears to avoid the problem.
Image

By adding tiles to the top and left sides of the Tilemap (as shown in the attached image), the Tilemap’s x and y values change, and as a result, the hitboxes are generated correctly.

However, this is not a fundamental solution, but only a workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions