donpink Posted May 30, 2015 Share Posted May 30, 2015 I have some object on my games, there like coinbox in Mario (but on floor). But, when i hit them he left, he slip. Or he goes down if i hit it from the up. I tried :this.body.gravity.y =0; this.body.gravity.x =0; this.body.immovable = true; this.blocked = { up: true, down: true, left: true, right: true }; But nothing worked to blocked him, any idea ? Link to comment Share on other sites More sharing options...
Skeptron Posted June 2, 2015 Share Posted June 2, 2015 Maybe you should use overlap instead of collide? This way you character won't "push" objects. Link to comment Share on other sites More sharing options...
Recommended Posts