kass Posted April 26, 2014 Share Posted April 26, 2014 im using arcade physics and i need to turn of my lava group gravity, the sprites i created using tiled keeps falling but i need them to stay in place. here is the code i tried this.lavaGroup.forEach(function(L){ L.body.allowGravity = false; }, this); Link to comment Share on other sites More sharing options...
kray Posted March 26, 2015 Share Posted March 26, 2015 What is the problem you are facing when you try this code? Link to comment Share on other sites More sharing options...
SatriaAI Posted December 25, 2017 Share Posted December 25, 2017 Are this post isn't any help to you? because group are collection from many sprite you can't use the body like for sprite. You must use it with setAll() try this Quote this.enemies.setAll('body.allowGravity', false); it give me no errors . Try it Link to comment Share on other sites More sharing options...
Recommended Posts