Gdevelop: Defauls collision mask is offset 1px

Created on 11 Jun 2018  路  5Comments  路  Source: 4ian/GDevelop

Describe the bug

The default collisiom mask of a sprite is offset by 1px on the Y-axis.
If you create a custom collisiom mask and add 1 to the Y axis everything looks as expected.
image

Other details

GDevelop 5.0.0-beta39

馃悰 bug 馃憣good first issue

Most helpful comment

FYI, this is a bug of the platformer engine (the default collision mask is ok) that will be fixed in next version :)

All 5 comments

Seems that there is an offset indeed. I think it's just the rendering of the mask in the editor that is faulty.

It is also in the preview. the picture in the upper left corner was taken form the preview with the player standing on the black floor.

Yes, I do think that the picture in the upper left corner taking from the preview is right, as there is one pixel between the character and the bottom of the image (as shown by the black border around the character in the editor), is that right? (the green colored area in my image below:
So the thing is that the red collision mask should have on extra pixel height?

untitled-1

The whole sprite seams to be shifted up by one pixel as the red box overlaps the black border.
image
The original sprite (checked in Piskel and Gimp) has 2 pixels above the head and the feet are at the very bottom of the image.

FYI, this is a bug of the platformer engine (the default collision mask is ok) that will be fixed in next version :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jeje2201 picture Jeje2201  路  5Comments

KinkGD picture KinkGD  路  5Comments

ced64k picture ced64k  路  4Comments

Bouh picture Bouh  路  3Comments

blurymind picture blurymind  路  5Comments