Jump to content

Immoveable not working?


glass22
 Share

Recommended Posts

In Create

var t = 10;         for(i=0;i<t;i++)        {                       var rX = game.world.randomX;            var rY = game.world.randomY;                       var n = oresCol.create(rX, rY, "oreSprite");              n.scale.setTo(.35, .35);                       n.body.immoveable = true;                   }

Objects are created without a problem

 

In Update

game.physics.collide(Player.unit, oresCol);

Collisions work...but the oreCol group is moving on collide, even though immoveable is set to true?
 


 

 

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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