- This topic has 5 replies, 2 voices, and was last updated 1 year ago by kdv.
-
AuthorPosts
-
2023-05-08 at 4:15 pm #63594kittCustomer
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!
Attachments:
You must be logged in to view attached files.2023-05-08 at 7:02 pm #63602kdvParticipantie. 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 theinput
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.
2023-05-08 at 7:44 pm #63604kittCustomerMove the
key_add
procedure to the bottom. It should be called right after updating theinput
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 1 year ago by kitt.
2023-05-08 at 7:55 pm #63606kdvParticipantPuzzles 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.
2023-05-08 at 11:33 pm #63609kittCustomerThank you so much for your solutions!
2023-05-09 at 12:04 am #63610kdvParticipantYou’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.
-
AuthorPosts
- You must be logged in to reply to this topic.