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

Added support for a parallax scroll factor per layer #2951

Merged
merged 9 commits into from
Dec 15, 2020
Merged

Conversation

bjorn
Copy link
Member

@bjorn bjorn commented Dec 9, 2020

Closes #1071

These changes add a per-layer parallax factor (separate for x and y, though usually they'd be the same). Editing operations have been adjusted to work with the parallax effect enabled.

@bjorn bjorn added the feature It's a feature, not a bug. label Dec 9, 2020
@bjorn bjorn self-assigned this Dec 9, 2020
Makes it work as expected for layers at an offset or using a scroll
factor.
Even though implemented as mostly just a factor on the scrolling speed,
the term "parallax" is more familiar and should make this feature easier
to discover.
* Centering the view on an object when it is clicked in the Objects view
  now takes into account the parallax factor of its layer when needed.

* The JumpToTile action now takes parallax factor into account, as well as
  possible layer offset (affects navigation to warning/error locations).

* When pasting objects they are correctly placed in the view center or
  below the mouse, even when pasting into a layer that is offset or
  which has a parallax factor applied.

Also renamed "scroll offset" to "parallax offset".
@bjorn bjorn force-pushed the wip/scroll-factor branch from 40ad457 to cfe6f74 Compare December 15, 2020 10:21
@bjorn bjorn merged commit 7d6b7e4 into master Dec 15, 2020
@bjorn bjorn deleted the wip/scroll-factor branch December 15, 2020 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature It's a feature, not a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement a basic camera system
1 participant