Jump to content

My box is a soccer ball !


donpink
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

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