Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emitter setXSpeed/setYSpeed does not work #20

Closed
xenyou opened this issue Jan 30, 2017 · 3 comments
Closed

emitter setXSpeed/setYSpeed does not work #20

xenyou opened this issue Jan 30, 2017 · 3 comments

Comments

@xenyou
Copy link

xenyou commented Jan 30, 2017

This Issue is about (delete as applicable)

  • A bug in the API (always say which version you're using!)

this code does not work correctly.
particles can not move anywhere. (works in phaser 2.6.2)

        this.waterParticle = game.make.bitmapData(2, 2);
        this.waterParticle.rect(0, 0, 2, 2, '#ff0000');
        this.waterParticle.update();

        this.emitter = game.add.emitter(200, 200, 500);
        this.emitter.makeParticles(this.waterParticle);
        this.emitter.setXSpeed(-100, -250);
        this.emitter.setYSpeed(-100, 100);
        this.emitter.setAlpha(0.2, 1);
        this.emitter.flow(500, 20, 2, -1, true);
@xenyou
Copy link
Author

xenyou commented Jan 30, 2017

version is 2.7.3

@samme
Copy link
Collaborator

samme commented Feb 4, 2017

Works for me: http://codepen.io/samme/pen/mRKrmG

@xenyou
Copy link
Author

xenyou commented Feb 6, 2017

Thanks for verifying it.
Hmm, I actually use this template.

https://github.com/lean/phaser-es6-webpack

So maybe this template or I made some mistake.
I'll close this issue.

@xenyou xenyou closed this as completed Feb 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants