dandorf Posted October 7, 2014 Report 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 Quote Link to comment Share on other sites More sharing options...
dandorf Posted October 13, 2014 Author Report Share Posted October 13, 2014 Any idea...? Quote Link to comment Share on other sites More sharing options...
valueerror Posted October 13, 2014 Report 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? Quote Link to comment Share on other sites More sharing options...
dandorf Posted October 13, 2014 Author Report Share Posted October 13, 2014 I´m working with ARCADE physicssystem.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.