Jump to content

Search the Community

Showing results for tags 'custom particle'.

  • 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, Im following the example (https://labs.phaser.io/view.html?src=src\game objects\particle emitter\custom particles.js) so i can create a custom particle that plays an animation during it's lifetime. In the example they create the custom particle class inside the same file of the scene, and also a variable called anim outside the scene scope so it can be called from the scene and inside the custom particle class. My question is the following, what if i create the custom particle class in a separate .js file? How can I pass the animation to the particle when is created in the createEmitter call? How can I pass the particleClass with some variables? Any recomendation would be appreciated. let emitter = particles.createEmitter({ x: 100, y: 100, frame: 0, quantity: 1, frequency: 200, angle: { min: 0, max: 30 }, speed: 200, gravityY: 100, lifespan: { min: 2000, max: 4000 }, particleClass: AnimatedParticle });
×
×
  • Create New...