Jump to content

Interesting particle effect


MichaelD
 Share

Recommended Posts

This looks pretty standard to me, it's just spawning square particles randomly in a fixed angle range with slight variations in velocity and scaling them down to zero over the particle lifetime. The different colours could be done by using white squares and tinting the particles depending on the surface the sprite is touching.

 

This example kinda demonstrates how you'd add scaling over time, but the exact method is entirely yours to decide:

 

http://examples.phaser.io/_site/view_full.html?d=particles&f=particle+class.js&t=particle%20class

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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