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

Allow scroll wheel to be used to change flying speed in creative mode and spectator mode #179

Open
stackotter opened this issue Aug 17, 2023 · 4 comments
Labels

Comments

@stackotter
Copy link
Owner

stackotter commented Aug 17, 2023

Currently players can only fly at a single (pretty slow speed) in Delta Client. In vanilla you can use the scroll wheel to change your flying speed, which is what you should try to emulate if you work on this issue.

Scroll wheel input should already be available in PlayerInputSystem (from InputState), so you can add some input handling code to change PlayerAttributes.flyingSpeed.

This issue can only be completed once #178 is completed. At the moment, flying speed doesn't depend on PlayerAtributes.flyingSpeed.

You can access the scroll up/down inputs from InputState.newlyPressed in PlayerInputSystem (before the call to InputState.tick).

@ninjadev64
Copy link
Contributor

You can do that in vanilla? Since when?

@stackotter
Copy link
Owner Author

I dunno, I thought since forever? I know that you can at least do it in spectator mode, and I'm pretty sure you can do it in creative mode

@ninjadev64
Copy link
Contributor

ninjadev64 commented Aug 17, 2023

Just looked it up, only spectator. That explains why I'd never heard about it

@stackotter
Copy link
Owner Author

Ok 👍 I had a vague memory of seeing similar logic for creative mode when I was looking at all the physics stuff in Vanilla, but I guess it's just spectator mode. I'm surprised you haven't heard of it before, it's pretty useful when searching around worlds and stuff!

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

No branches or pull requests

2 participants