Jump to content

Collide with TileSprite


Chezt
 Share

Recommended Posts

Hello i wanna ask how to collide with tilesprite using arcade physics ?

i found this thread

http://www.html5gamedevs.com/topic/4388-cant-collide-with-tilesprite/

and example go to http://phaser.io/examples/v2/tile-sprites/colliding-with-tiling-sprite

but that not work.

 

I change from tilesprite to sprite its normal player can collide

hes some of my code

create : 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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...