-
Hi everyone, I'm building a maze game using a That's the part that is not working for me. When I set the tile to Here is a rough example of the code I'm using to generate the map:
Does anyone have any ideas how to solve this? I might just be missing something. Any help is appreciated :-) Thanks a lot, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @pdrhlik thanks for posting! I did a little digging and it looks like var edge = new ex.Actor({
pos: ex.vec(100, 200),
collisionType: ex.CollisionType.Fixed
});
edge.collider.useEdgeCollider(ex.vec(0, 0), ex.vec(0, 100));
game.add(edge); I've made a bug so we can get this fixed #2353, I suspect the offset isn't being calculated right. I'll have some time later to investigate more. |
Beta Was this translation helpful? Give feedback.
Hi @pdrhlik thanks for posting!
I did a little digging and it looks like
EdgeCollider
doesn't behave properly when included in theTileMap
'sCompositeCollider
, but as a workaround a standalone actor with an edge collider seems to behave correctly.I've made a bug so we can get this fixed #2353, I suspect the offset isn't being calculated right. I'll have some time later to investigate more.