Escape to continue and skip typewriter effect
Posted: Fri Nov 22, 2024 12:12 am
Hi, I'm just wondering if there may be a simple way to do this - if not, it's nothing to worry about.
In my game the player has to click the continue button to progress the conversation to the next node at which point the typewriter effect starts printing out the contents. If the user clicks again, it will finish the typewriter effect. That's working fine but I was wondering if I could map the escape key to progress to the next node AND immediately finish the typewriter effect in the next node. I notice that the escape key is already tied to cancel conversation which for my game behaves almost exactly like clicking the continue button as far as I can tell - which is fine but I was wondering if I could somehow tweak it to also skip the typewriter immediately instead of having to press escape 2x per node.
Can you point me in the right general direction? Thank you for your time.
In my game the player has to click the continue button to progress the conversation to the next node at which point the typewriter effect starts printing out the contents. If the user clicks again, it will finish the typewriter effect. That's working fine but I was wondering if I could map the escape key to progress to the next node AND immediately finish the typewriter effect in the next node. I notice that the escape key is already tied to cancel conversation which for my game behaves almost exactly like clicking the continue button as far as I can tell - which is fine but I was wondering if I could somehow tweak it to also skip the typewriter immediately instead of having to press escape 2x per node.
Can you point me in the right general direction? Thank you for your time.