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.

Puzzles to slide animation along an X or Y-axis, using keyboard events?

Home Forums Puzzles Puzzles to slide animation along an X or Y-axis, using keyboard events?

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #67096
    c4cc
    Participant

    I know under Events puzzles, it’s possible to count the number of mouse clicks:
    kurumii

    Yet I looked under the HTML puzzles, and no specific puzzle is mentioned about counting number of Keydown Event … unless I put a variable for it…

    kurumii

    • This reply was modified 7 months, 1 week ago by c4cc.
    #67098
    kdv
    Participant

    and no specific puzzle is mentioned about counting number of Keydown Event

    Such a puzzles doesn’t exist. That’s just pure math and logic to get the time between two key hits.

    Puzzles and JS. 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 meaning at all.

    #67099
    c4cc
    Participant

    Also, I wanna make my character turn around 180 (e.g., right to left, or vice versa) after pressing left or right keys twice in a row. How do I use logic for this, given that puzzle logic “and” does not accept number operations:

    My first attempt with logic, math and time puzzles for double-tap keydown Event:

    kurumii

    kurumii

    • This reply was modified 7 months, 1 week ago by c4cc.
    • This reply was modified 7 months, 1 week ago by c4cc.
Viewing 3 posts - 16 through 18 (of 18 total)
  • You must be logged in to reply to this topic.