-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
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
- Open the sample game “Duck Game”.
- Open the level 3 scene.
- Observe the Tilemap object placed at position x = 0, y = 0.
- Check the Tilemap hitboxes and the Platformer behavior.
- 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.
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels