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 keypress/text input not working correctly

Home Forums Puzzles Puzzles keypress/text input not working correctly

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #63594
    kitt
    Customer

    Hi everyone!

    I am currently working on a project to create a functional typewriter in Verge. It’s working really well, but I’ve encountered a slight issue, and I’m hoping someone can help me.

    At the moment, it’s set up so that each press of a key on the onscreen keyboard types the same letter in the text box but, for reasons I cannot fathom, it will only type the first letter you press after you’ve typed a second letter, and so on down the chain.

    ie. press ‘E’, nothing appears, press ‘T’, ‘E’ appears, press ‘Y’, ‘T’ appears, etc etc.

    How do I go about setting up the puzzles so that the letters appear as they are pressed?

    Additionally, how can I set it up so that pressing ‘backspace’ or ‘delete’ will remove the last letter added to the text?

    I’ve included a link to the project file, and some screenshots of the puzzles which makes it {almost} work, below.

    Any help you can offer will be massively appreciated!

    Link to V3D Project

    Attachments:
    You must be logged in to view attached files.
    #63602
    kdv
    Participant

    ie. press ‘E’, nothing appears, press ‘T’, ‘E’ appears, press ‘Y’, ‘T’ appears, etc etc.

    Move the key_add procedure to the bottom. It should be called right after updating the input variable. Not before.

    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.

    #63604
    kitt
    Customer

    Move the key_add procedure to the bottom. It should be called right after updating the input variable. Not before.

    You’re a saint!! Thank you so much, that works perfectly now.

    Are you able to help me with removing the last added letter by clicking the backspace/delete buttons?

    • This reply was modified 12 months ago by kitt.
    #63606
    kdv
    Participant

    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.

    #63609
    kitt
    Customer

    :heart: Thank you so much for your solutions!

    #63610
    kdv
    Participant

    You’d better consider updating Verge3D (and the app itself) up to 4.3.1 and re-exporting the model with the render order independent transparency option enabled to get rid of visual issues.

    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.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.