nicwins Posted April 29, 2017 Share Posted April 29, 2017 Hi, in my render function, I have the following: render: function() { this.game.debug.body(this.player); this.game.debug.body(this.redMonstarsGroup); }, Now, the player, has a little green box around him, however the monster (or the group of monsters) has nothing and I get a warning: " gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, texture.source);" HOW TO I GET A LITTLE GREEN DEBUG BODY ON A GROUP OF OBJECTS? Link to comment Share on other sites More sharing options...
nicwins Posted April 29, 2017 Author Share Posted April 29, 2017 ***Also, why to I get 32 warnings for that texture_2d thing in virtual joystick? Link to comment Share on other sites More sharing options...
samme Posted April 29, 2017 Share Posted April 29, 2017 this.redMonstarsGroup.forEach(this.game.debug.body, this); Link to comment Share on other sites More sharing options...
nicwins Posted April 30, 2017 Author Share Posted April 30, 2017 im going to try this tomorrow, thank-you man Link to comment Share on other sites More sharing options...
nicwins Posted May 1, 2017 Author Share Posted May 1, 2017 No this didn't work, the virtual joystick plugin seems to have a problem with the "this" at the end. Is there an alternative? Link to comment Share on other sites More sharing options...
nicwins Posted May 1, 2017 Author Share Posted May 1, 2017 Link to comment Share on other sites More sharing options...
samme Posted May 1, 2017 Share Posted May 1, 2017 Oops. this.redMonstarsGroup.forEach(this.game.debug.body, this.game.debug); nicwins 1 Link to comment Share on other sites More sharing options...
nicwins Posted May 1, 2017 Author Share Posted May 1, 2017 You did it. you did it! thank-you pink wizard Link to comment Share on other sites More sharing options...
Recommended Posts