glass22 Posted December 28, 2013 Share Posted December 28, 2013 In Createvar 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 Updategame.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 More sharing options...
MisterMaSK Posted December 28, 2013 Share Posted December 28, 2013 the spelling of immovable is wrong Link to comment Share on other sites More sharing options...
glass22 Posted December 28, 2013 Author Share Posted December 28, 2013 Doh! Link to comment Share on other sites More sharing options...
Recommended Posts