Jump to content

Search the Community

Showing results for tags 'killoncomplete'.

  • 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 all, I'm trying to re-use sprites like so: squareTargets = game.add.group(); squareTargets.enableBody = true; squareTargets.physicsBodyType = Phaser.Physics.ARCADE; squareTargets.createMultiple(maxSquareTargets, 'square target sheet'); squareTargets.setAll('checkWorldBounds', true); squareTargets.setAll('outOfBoundsKill', true); squareTargets.setAll('hasOverlapped', false); //my own property I use in my logic squareTargets.setAll('frame', 1); // so it displays on the 1 index of my sprite sheet squareTargets.callAll('animations.add', 'animations', 'explode', [1, 2, 3, 0], 5, false); I also want the individual sprite to kill() when the explode animation is run, how do I set this at the group level? I see that I can individually set animations on a sprite and do this: var explode = singleTarget.animations.add('explode', [1, 2, 3, 0], 5,); explode.killOnComplete = true; But I'd rather find a way set the animation on the group and killOnComplete for the animation in one go, rather than loop through the group and define the animation and property (which I suspect is wasteful from a memory point of view).
×
×
  • Create New...