melonJS: Entity and solid block on collision layer
- by Arthur Halma
Actually I have my player entity with 64x64 sprite animation and 18x60 hitbox also the map is maded by 16x16 tiles.
When my player goes some way he can pass through blocks (but not all of them).
For example there are 4 situations:
Good (player can't pass the tile with isSolid property on collision layer)
Good (player can't pass the tile with isSolid property on collision layer)
Bad (player pass the tile with isSolid property on collision layer)
Bad (player pass the tile with isSolid property on collision layer)
Looks like melonJS checks only corners of hitbox instead of whole rectangle.
Can anyone help me in this situation.