Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

5 years ago by eLouai

It seems simple enough?

I might be missing something. Is there an easy way to set Box2D world to 'pause' to stop updating the forces. Maybe with the steps?

I am thinking there might be a simple call that I am just not seeing in the API. How do you 'pause' the game when using the Box2D plugin?

5 years ago by eLouai

For those who might be interested, I switched to Joncom's box2d for impactjs (thanks for that btw) and just in the main.js modify the update
update: function() {
      if(showStats){
        ig.music.pause();
        if (ig.input.state('start'))
				{
          this.showStats = false;
          this.parent();
        }
      }else{
        this.parent();
        ig.music.play();
      }
    },
Page 1 of 1
« first « previous next › last »