Sean95 Posted November 28, 2017 Share Posted November 28, 2017 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.