Jump to content

Search the Community

Showing results for tags 'subgroup'.

  • 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. Hi, I'm using a group for all bullets in the game, and would like to keep the bullets of enemies in subgroups of the main bulletgroup. For some reason, this code crashes, and I can't figure out why. The error I get: Uncaught TypeError: Cannot read property 'x' of undefined phaser.js:34380 this.bullets = this.game.add.group(); var enemyBullets = this.game.add.group(); enemyBullets.createMultiple(30, 'arrow'); enemyBullets.setAll('anchor.x', 0.5); enemyBullets.setAll('anchor.y', 0.5); enemyBullets.setAll('outOfBoundsKill', true); this.bullets.add(enemyBullets); this.game.physics.enable(enemyBullets, Phaser.Physics.ARCADE);
×
×
  • Create New...