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

Change direction? #166

Open
aolko opened this issue Jun 12, 2019 · 3 comments
Open

Change direction? #166

aolko opened this issue Jun 12, 2019 · 3 comments

Comments

@aolko
Copy link

aolko commented Jun 12, 2019

Is it possible to change the direction of movement without changing the speed?

@p-realinho
Copy link
Contributor

Hey. Thanks for using the plugin.

I believe changing the speed is the only way to control the direction of movement (if we're not talking about changing axis, just direction).

Wouldn't inverting the speed number achieve what you want?
For example, if you're element has a speed of -3, changing it to 3 would change the direction while keeping the same speed.

Let me know if that works for you.

@aolko
Copy link
Author

aolko commented Jun 18, 2019

right, but can it be implemented for 4 cardinal directions independently of speed?

@p-realinho
Copy link
Contributor

I'm not sure I understand your question correctly and I'll be honest here, I'm not entirely up-to-date with some of the features, but, I believe wherever there's a speed, you can invert it to make it go the other way.
This goes for vertical and horizontal parallax.

I understand you do not wanna change the speed, just the direction, but, if you invert the speed's value, the element will keep the same exact speed but will travel in the opposite direction.

Now, in case you wanna make it travel horizontally instead of (the default) vertically, for example, you'd have to follow the readme (sorry, I can't help much with that part, I never used it myself).
But then, the same principle would apply.
To make it go, for example, left to right instead of right to left, you'd just need to invert the speed's value.

(Someone correct me if I'm spreading fake news here, please, thanks lol)

Play around with those settings a bit and let me know how it goes.

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