16patsle Posted April 24, 2015 Share Posted April 24, 2015 I am wondering how to get better collision with tiles from a tilemap that are partly transparent?Like here when the player is just floating above the ground. How do i change the collision box to fit better on tiles? Link to comment Share on other sites More sharing options...
rich Posted April 26, 2015 Share Posted April 26, 2015 I'm afraid there's no support for sloped tiles at the moment (which is basically what you have here). Link to comment Share on other sites More sharing options...
drhayes Posted April 27, 2015 Share Posted April 27, 2015 I've got some one-way tiles that use a custom collision handler to detect if the tile is colliding from any side but the top (and a special case for if the other sprite has just passed through it). I wonder if you couldn't write your own collision handler for your sloped tiles and then, assuming you're using a tilemap, call "setCollision" for every tile that's a slope? I haven't seen any grossly negative performance problems yet. Link to comment Share on other sites More sharing options...
16patsle Posted February 13, 2016 Author Share Posted February 13, 2016 Thank you for the feedback. Since there is no support for sloped tiles as rich said I will probably just use the normal tiles for now. The custom collision handler seems like it could work though so maybe I will look into it at some point. It would also be a nice addition if there was support for this. Link to comment Share on other sites More sharing options...
Recommended Posts