We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Keyboard Events unresponsive after double tapping key event input/function

Home Forums Puzzles Keyboard Events unresponsive after double tapping key event input/function

Viewing 15 posts - 46 through 60 (of 68 total)
  • Author
    Posts
  • #67359
    c4cc
    Participant

    I did that, it works, unfortunately, it could only rotate facing left and then right. I tried to rotate facing left again, character didn’t do so.

    kurumii

    • This reply was modified 1 year, 1 month ago by c4cc.
    #67360
    kdv
    Participant

    Think. Debug. The answer is obvious and is visible in the console log. Read this topic from the very begining to find an answer.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #67362
    c4cc
    Participant

    I simply added “round” to “get Player Petra”‘s rotation as per red box:

    kurumii

    Now I can turn around this character facing left or right side whenever I want. Hell yeah. Thanks for the first tip that mentioned applying that round puzzle to

    kurumii

    • This reply was modified 1 year, 1 month ago by c4cc.
    • This reply was modified 1 year, 1 month ago by c4cc.
    • This reply was modified 1 year, 1 month ago by c4cc.
    #67363
    kdv
    Participant

    The miracle has happened.

    One more optimization you can do: move conditions comparing rotation into conditions checking the time interval

    First you check the double-hit and if true you check the rotation. That will be a little more correct.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #67368
    c4cc
    Participant

    One more optimization: move conditions comparing rotation into conditions checking the time interval

    kurumii

    First you check the double-hit and if true you check the rotation.

    How do I do this?

    • This reply was modified 1 year, 1 month ago by c4cc.
    #67369
    kdv
    Participant

    You already did.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #67371
    c4cc
    Participant

    First you check the double-hit and if true you check the rotation.

    What does this mean? If it doesn’t mean click on “if-do” logic puzzles with get Player Petra Rotation Z, then drag it to the if-do-else logic puzzles…

    #67372
    kdv
    Participant

    What does this mean?

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #67374
    c4cc
    Participant

    Now I finally get it. Appreciate it

    One more optimization you can do: move conditions comparing rotation into conditions checking the time interval

    Thanks for this optimization tip, too. :good:

    #67749
    c4cc
    Participant

    Double tapping with dash functions:

    (Instant dash while transform)

    original-drawn-by-nanashinayuzu-mochi-53d2788a0d5e217f8b28d256c728bf04

    (Transform first, then dash)

    original-drawn-by-nanashinayuzu-mochi-53d2788a0d5e217f8b28d256c728bf04

    • This reply was modified 1 year ago by c4cc.
    #67803
    c4cc
    Participant

    Attack Buttons:

    Single kick:
    original-drawn-by-nanashinayuzu-mochi-53d2788a0d5e217f8b28d256c728bf04

    Double kick
    original-drawn-by-nanashinayuzu-mochi-53d2788a0d5e217f8b28d256c728bf04

    • This reply was modified 1 year ago by c4cc.
    • This reply was modified 1 year ago by c4cc.
    #68522
    c4cc
    Participant

    Verge3d prevent attacks during double tap

    Kick
    original-drawn-by-nanashinayuzu-mochi-53d2788a0d5e217f8b28d256c728bf04

    FireBall
    original-drawn-by-nanashinayuzu-mochi-53d2788a0d5e217f8b28d256c728bf04

    Basic Player movements
    https://ibb.co/h2pRy81
    original-drawn-by-nanashinayuzu-mochi-53d2788a0d5e217f8b28d256c728bf04
    original-drawn-by-nanashinayuzu-mochi-53d2788a0d5e217f8b28d256c728bf04

    • This reply was modified 1 year ago by c4cc.
    • This reply was modified 1 year ago by c4cc.
    #68652
    c4cc
    Participant

    Basic player movements (disabled key input during double tap input)

    original-drawn-by-nanashinayuzu-mochi-53d2788a0d5e217f8b28d256c728bf04

    original-drawn-by-nanashinayuzu-mochi-53d2788a0d5e217f8b28d256c728bf04

    original-drawn-by-nanashinayuzu-mochi-53d2788a0d5e217f8b28d256c728bf04

    #68653
    kdv
    Participant

    Verge3d prevent attacks during double tap

    Any “keydown” event will be interrupted if another button is pressed.

    https://v3d.net/q93

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #68658
    c4cc
    Participant

    Thanks for the feedback, but my intention was to disable certain key function/inputs during double tapping

Viewing 15 posts - 46 through 60 (of 68 total)
  • You must be logged in to reply to this topic.