Chezt Posted April 17, 2015 Share Posted April 17, 2015 Hello i wanna ask how to collide with tilesprite using arcade physics ?i found this threadhttp://www.html5gamedevs.com/topic/4388-cant-collide-with-tilesprite/and example go to http://phaser.io/examples/v2/tile-sprites/colliding-with-tiling-spritebut that not work. I change from tilesprite to sprite its normal player can collidehes some of my codecreate : function() {daratan = this.add.tileSprite(-this.cache.getImage('wall').width/2, 0, this.cache.getImage('wall').width, this.world.height, 'wall'); this.physics.enable(daratan, Phaser.Physics.ARCADE);},update: function() { // Collide this.physics.arcade.collide(player, daratan);}Thanks EDIT : its work in phaser ver 2.2.2 is this a bug ? Link to comment Share on other sites More sharing options...
rich Posted April 17, 2015 Share Posted April 17, 2015 https://github.com/photonstorm/phaser/issues/1704 Link to comment Share on other sites More sharing options...
rich Posted April 17, 2015 Share Posted April 17, 2015 Also this: http://www.html5gamedevs.com/topic/13856-problem-with-collide-method-from-physics-arcade-in-different-versions-of-phaser/?p=79032 Link to comment Share on other sites More sharing options...
Chezt Posted April 18, 2015 Author Share Posted April 18, 2015 thanks for answer rich ! i'm sorry i didn't check enough Link to comment Share on other sites More sharing options...
Recommended Posts