Jump to content

emitter setScale not work, bad docs and example


nak3ddogs
 Share

Recommended Posts

emitter setScale wont work. i copyed the example code and everything work just the setScale and setAlpha wont work. I found in the docs and the example code not good anyway

 

the link for the example

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

 

in the docs:

setScale(minXmaxXminYmaxYrateeaseyoyo)

 

in the example:

emitter.setScale(0.5, 0.5, 1, 1);

 

min x scale and the max x scale is same like the y scale

 

Link to comment
Share on other sites

The example showing how particle scaling works is the auto scale example: http://examples.phaser.io/debug.php?f=particles/auto+scale.js which looks fine to me.

 

The docs are correct. That is the order in which you should specify the parameters.

 

And you can set the min and max values to be the same if you want, it just means it won't scale when emitted.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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