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

Up-Jump in Command book #178

Open
Jonas5623 opened this issue Mar 21, 2023 · 3 comments
Open

Up-Jump in Command book #178

Jonas5623 opened this issue Mar 21, 2023 · 3 comments

Comments

@Jonas5623
Copy link

I made a command book for demon avenger whose up-jump is Jump+up+up unlike Adele´s Jump+up+jump, can anyone tell me how to write the Jump+up+up classes in command book?

@ORUERT
Copy link

ORUERT commented Apr 19, 2023

you should adjust you order of command like this:
`class DoubleJump(Command):
"""Performs a double jump in the given direction."""

def __init__(self, direction):
    super().__init__(locals())
    self.direction = settings.validate_arrows(direction)

def main(self):
    
    if self.direction == 'up':
        press(Key.JUMP, 1)
        key_down(self.direction)
        time.sleep(0.1)
        key_up(self.direction)
        press(Key.JUMP, 1)
    else:
        key_down(self.direction)
        time.sleep(0.1)
        press(Key.JUMP, 1)
        press(Key.JUMP, 1)
        key_up(self.direction)
    time.sleep(0.5)`

@twizzol
Copy link

twizzol commented May 29, 2023 via email

@KeiZc
Copy link

KeiZc commented May 30, 2023

I tried to amend the coding as per ORUERT. However, it does not work and or open the .py file in the auto maple.

Any direct guidance on how to amend the command book? I would appreciate it.

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

4 participants