Siiseli Posted November 14, 2013 Share Posted November 14, 2013 Hey, I'm fairly new to Phaser and currently trying to figure out how to animate my particles. Looking at the source code(briefly glancing) and documentation, this doesn't seem supported? Is this the case or am I just missing something, and if so, should I just extend the current emitter/particle classes to include animation? Link to comment Share on other sites More sharing options...
Alvin Posted November 14, 2013 Share Posted November 14, 2013 I'm not sure what you are looking for, but have a look at the particles examples, especially this one : http://gametest.mobi/phaser/examples/_site/view_full.html?d=particles&f=zero+gravity.js&t=zero%20gravity, where the physics engine is not used. Link to comment Share on other sites More sharing options...
Siiseli Posted November 14, 2013 Author Share Posted November 14, 2013 I meant I want the particle sprites to animate. That one uses a spritesheet, sure, but it just chooses a random frame from there instead of actually animating it. Link to comment Share on other sites More sharing options...
jcs Posted November 14, 2013 Share Posted November 14, 2013 the Emitter has a field "particleClass" that purports to enable you to specify the class/constructor that particles should be created with. you could set the class and have the particles do whatever you want (in theory, anyway) _unfortunately_, the line (320 in the dev branch) in 'makeParticles' that uses the field is commented out :/ perhaps we can get Rich to uncomment it for now, however, you can uncomment it yourself. that's the beauty of open source Link to comment Share on other sites More sharing options...
Recommended Posts