Jump to content

Search the Community

Showing results for tags 'debug body sprite group'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hello, Here is a part of my code: create: function() {this.hedgehogs = game.add.group();this.hedgehogs.createMultiple(10, 'hedgehog');},update: function() {if (this.game.time.now > this.Time) {this.addHedgehog();this.Time = game.time.now + 2000;}},addHedgehog: function() {var hedgehog = this.hedgehogs.getFirstDead();game.physics.arcade.enable(hedgehog);hedgehog.body.setSize(95, 61, 7, 6);},How can I debug the 'body' of the 'hedgehog'? I tried: game.debug.body(hedgehog);game.debug.body(this.hedgehog);But none of them work. Any help? TIA
×
×
  • Create New...