dandorf Posted October 7, 2014 Share Posted October 7, 2014 I use tiled map editor to create maps json my game. I've done that the map is loaded and all good. Now, I've made my character shoot. And I want those shots collide with the wall (and call a function to delete the shot with an animation). I can not do that from phaser to detect specific tile (tiles hard block) to treat this as a sprite tile. And put in the update () function to the group of bullets that hit my character collides with these tiles (sprites). Help please Link to comment Share on other sites More sharing options...
dandorf Posted October 13, 2014 Author Share Posted October 13, 2014 Any idea...? Link to comment Share on other sites More sharing options...
valueerror Posted October 13, 2014 Share Posted October 13, 2014 well .. the answer depends on what physicssystem you use. p2? if so, are you using collision groups, do you have impact events enabled and you can work with groupcallbacks or would you rather work with onBeginContact events? Link to comment Share on other sites More sharing options...
dandorf Posted October 13, 2014 Author Share Posted October 13, 2014 I´m working with ARCADE physicssystem.Thanks!! Link to comment Share on other sites More sharing options...
Recommended Posts