All Questions

Community

M
marko95

Space + left arrow + up arrow -> jump won't work

Hello :D


sprint -> sprint

up arrow -> jump

When I hold space and left arrow and then I click up arrow, my player can't jump.

Do you know why?

  • M
    marko95 replied

    I changed jump event to shift, but if I hold space(or alt) and left arrow, up arrow still doesn't work xD

    Bug in the engine maybe?

  • Nathan Lovato replied

    Like that, I can't tell you why. I'd need to see your code and input map setup to see where the bug lies. Most likely it's in your project.

    If you'd like me to take a look, could you share your code with me?

  • M
    marko95 replied

    ok :D but it is same as yours..

    I just used default map input key.

    move_left -> ui_left

    move_right -> ui_right

    jump -> ui_up

    sprint -> space


    I created a little test, code:

    func _physics_process(delta: float) -> void:

    if Input.get_action_strength("ui_select"):

    print("ui_select")

    if Input.get_action_strength("ui_left"):

    print("ui_left")

    if Input.get_action_strength("ui_up"):

    print("ui_up")


    When I started the game and first pressed left arrow, then space, then up arrow, output is:

    ... 

    ui_left

    ui_select

    ui_left

    ui_select

    ui_left

    ui_select

    ui_left

    ui_select

    ui_left

     

    I noticed this mistake earlier, but then it was irrelevant to me.

  • M
    marko95 replied

    ok xD It is my laptop ...

    I tested arrow keys with space (here http://math.hws.edu/eck/cs120/f11/lab5/lab5-files/ArrowKeys.html) and driver or something else wont recognize up arrow :/

  • Nathan Lovato replied

    Ah, that's sad, you have a button broken perhaps? Or it's a software issue (driver)? I see...

  • M
    marko95 replied

    I found on the internet that too many people have problem when pressed left arrow + space + up arrow

    Could you try and test these 3 keys together, but click up arrow at the end?

    P.S.:

    I tested on dell xps 15 (ubuntu and windows 10) and thinkpad(windows 10)...both laptops didn't recognize up arrow :/

  • Nathan Lovato replied

    I have a mechanical keyboard, they don't have those kinds of limitations, so no problem for me.