Jump to content

Particle Emitter with atlas names?


Matthias Elephant
 Share

Recommended Posts

Hi,

i would like to use the emitter for some particles. The images are loaded in an atlas.

I want to use an specific image from the atlas. In the examples i found this: http://phaser.io/examples/v2/particles/collision

    emitter.makeParticles('veggies', [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20], 200, true, true);

My problem is, that i dont know the index. But i know the framename.

 

Someone know, how to use an emitter with atlas name and framename? Maybe there is a way to get the indexnumber from atlas if i know the framename?

 

Thanks

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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