I've been trying to get my collision to work in phaser, I created my map in tiled so as far as i know i'm you use something like this
"map.setCollisionBetween(264, 265, true, 'foreground');"
I got the coordinates by calculating the id's from the tiles from the png file that i used in tiled. It creates the collision but not where i want it.
I will insert the png file i used.
so the tiled id goes like from the top left and right being 264 and 265. The bottom left and right is 297 and 298
the collision is working like this:
My script looks like this:
Any ideas why this is happening or how i can fix it?
Thanks