Jump to content

Filters on particles/sprites or as overlay


Recommended Posts

I love the new fire filter example. I'm thinking it would be awesome to make some sort of flamethrower/similar, or at least fiery fireballs that can be thrown by a wizard.


I've used Phaser for about 30 minutes so bear with me - from what I've gathered you apply filters to sprites.

I'm trying out a simple emitter (the diamond burst from the samples) and I can easily forEach through them and apply the fire filter. The 'problem' is that they all share the same filter and don't act as individual entities with their own sense of 'fire'.


I understand this makes perfect sense within the realm of GLSL and filters, but these concepts are quite tricky for me to wrap my head around. I'm wondering if anyone has any hints on how to 'individualize' filter effects.


It would be awesome for a lot of things:


1. Fireballs, streams of lava and other fiery goodness

2. Displacement effect as the heat exhaust of a jet fighter in a shoot'em up


The second idea is a different beast I suppose - imagine a Tyrian clone and you have a top down view of a ship. You'd want something like a diminishing cone of displacement firing out of the engine of the aircraft.


Leads me to the question.. where does the GLSL end and Phaser begin? Perhaps it's necessary to learn to create your own shaders to really get control of this - I have no idea :)

Link to comment
Share on other sites


  • Recently Browsing   0 members

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