fkkcloud Posted March 8, 2016 Share Posted March 8, 2016 Hi, Is it possible to make a specific sprite's gravity to zero? I know that in Ninja physics, below is not option this.sprite.body.gravity = 200; this.sprite.body.velocity.x = 100; but we use below for Ninja, this.game.physics.ninja.gravity = 2; but this is for GLOBAL. I want to set gravity per sprite specifically.. HELP! Link to comment Share on other sites More sharing options...
fkkcloud Posted March 8, 2016 Author Share Posted March 8, 2016 seems like below works, this.sprite.body.gravityScale = 0 Link to comment Share on other sites More sharing options...
Recommended Posts