Jump to content

Emitter.emitX/Y interchangeable with Emitter.x/y?


UnShame
 Share

Recommended Posts

I noticed that when I set emitX/Y properties of an Emitter, it also sets the x and y coordinates of it and vice versa. And to set the base position I have to use the Emitter.position property:

http://phaser.io/sandbox/DJfzeeuv/play

Yet in the docs it says this:

Quote

Emitter.x and Emitter.y control the containers location, which updates all current particles
Emitter.emitX and Emitter.emitY control the emission location relative to the x/y position.

http://phaser.io/docs/2.6.2/Phaser.Particles.Arcade.Emitter.html#emitX

And the position property isn't listed there at all. I was wondering if the way I'm setting up the emitter causes it to work this way of if this is the intended behavior? 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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