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

Parallax Layers #8

Open
englercj opened this issue Oct 20, 2014 · 5 comments
Open

Parallax Layers #8

englercj opened this issue Oct 20, 2014 · 5 comments

Comments

@englercj
Copy link
Owner

Right now there is no support for layers that scroll at different speeds, need to implement scrollFactor for layers and get that working. Also have custom properties so they can be set from Tiled.

@englercj englercj added this to the v1.3.0 milestone Oct 20, 2014
@englercj englercj modified the milestones: v1.4.0, v1.3.0 Dec 13, 2014
@englercj englercj removed this from the v1.4.0 milestone Mar 18, 2015
@englercj englercj added this to the v2.0.0 milestone Apr 15, 2015
@embiem
Copy link

embiem commented Jun 26, 2015

any progress on this? I am currently working on a workaround to add parallaxing with this plugin by doing this:
var xAmount = (this.mainLayer._scrollDelta.x * this.driftAmountMain) / 1000;
var yAmount = (this.mainLayer._scrollDelta.y * this.driftAmountMain) / 1000;
this.mainLayer.position.x += xAmount;
this.mainLayer.position.y += yAmount;
this.mainLayer._scroll.x += xAmount;
this.mainLayer._scroll.y += yAmount;

... which is not quite right and I need to get back to this later. If you want, I can help you implement scrolling in your plugin. So, do you have any progress already?

@englercj
Copy link
Owner Author

I do not! Unfortunately, been too busy to work on this project at all for a while. v2 is being developed in the thin-tiles branch though so if you make any changes, do it there.

@embiem
Copy link

embiem commented Jun 26, 2015

okay, I forked the current version and will try to implement the scrolling feature.

@Weedshaker
Copy link
Contributor

How is the progress going?
Phaser lets me change the scrollFactorX/scrollFactorY for tiles and works beautiful, it would be nice if Phaser-tiled gets this, too!

THX

@englercj englercj modified the milestones: v2.2.0, v2.0.0, v2.1.0 Mar 14, 2016
@englercj englercj modified the milestones: v3.0.0, v2.1.0 Apr 5, 2016
@englercj
Copy link
Owner Author

englercj commented Apr 5, 2016

Moving this to v3 where the new custom render code will make this a lot easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants