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

ScrollImage: Parallax not supporting Fractions #2

Open
ciathyza opened this issue Mar 7, 2013 · 1 comment
Open

ScrollImage: Parallax not supporting Fractions #2

ciathyza opened this issue Mar 7, 2013 · 1 comment

Comments

@ciathyza
Copy link

ciathyza commented Mar 7, 2013

Is there any way you can add support for layer parallax that is a fraction, e.g. 0.5? Currently when the parallax of a layer is a fraction, the layer's offset is not correct when wrapping occurs, e.g the tilesOffsetX jumps from 0 to 640 on a layer that is 640px wide. In the case the scroller would offset the layer with it's 0 position in the center, which is not correct.

@krechagames
Copy link
Owner

I think you can correct ScrollTile.offsetX position to resolve 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