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

startAt parameter of pathFollower.startFollow() is never used #3688

Closed
DannyT opened this issue May 22, 2018 · 2 comments
Closed

startAt parameter of pathFollower.startFollow() is never used #3688

DannyT opened this issue May 22, 2018 · 2 comments

Comments

@DannyT
Copy link
Contributor

DannyT commented May 22, 2018

Trying to start a PathFollower half-way along its path but the startAt parameter doesn't seem to do anything.

Checking the source appears it's not used:
https://github.com/photonstorm/phaser/blob/c51742ad9f1a247184b14a38f9aedb508b67ef63/src/gameobjects/pathfollower/PathFollower.js#L237-L293

Easily testable in this lab by adding the startAt parameter to the lemming.startFollow method:
http://labs.phaser.io/edit.html?src=src\paths\followers\change%20path.js


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@photonstorm
Copy link
Collaborator

Yes, appears to be not implemented at the moment. I'm guessing because it doesn't work with starting tweens at an offset. Will have a look in to it.

@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

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