Jump to content

debug body green square disappears in some parts on the screen


Recommended Posts

I've made a simple sprite and enabled arcade physics, but for some reason, when I debug the body of the sprite, the green square only displays on the top left of the screen. When I drag it around anywhere else, the green square disappears, yet collisions still register. Any ideas why this is happening?

create() {

    this.pet2 = this.game.add.sprite(
    this.game.physics.enable(this.pet2, Phaser.Physics.ARCADE);
    this.pet2.inputEnabled = true;

render() {


Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...