Hello,
I am implementing wave type of skill like this:
and I want it to stop on collision:
but I have a problem with collision detection because in the video above it's visible that the wave did not collide with tree however it stopped.
I checked the tiled and I have collision only here:
and I think there is an issue with creating a hitbox. I checked how it's created and to debug that I created shape for every hitbox being checked.
In the video above you can see that the hitbox is offset to the right of the image.
I have scaled this spritesheet:
@Spritesheet({
...
scale: [0.5, 0.5],
})
export default class IceSpikesSpritesheet { }
Maybe it's an issue?
Edit: It's working perfectly with anchor: [0, 0]
, so probably the issue is that hitbox does not take anchor
into account
I also see that probably all config set on Spritesheet is not taken into account, because it just takes x, y and hitbox size, without anchor, rotation, angle etc.
I assume it's not trivial to implement but are plans to cover this?