Hello all! I have a beginner question. I can't get this to work properly. Basically I want a black UI and text to show up when the player presses a button. I want it to stay on screen for a few seconds while the text comes up typewriter style. I have these parts working (well, still working on the typewriter effect but I'm working on it) but I don't want the player to be able to spam the select button making the text/UI visible and invisible after the code runs once. I want the text and UI to display for the appropriate amount and for the player to not be able to press or activate this action again until it finishes playing. Here's my code.
I also have another, more complicated question related to this. I want to create a number of different texts or dialogues that would show up whenever the player presses Select or R. Kind of like a Metal Gear Solid codec system. I know how I would go about making the game say the same specific text/sentence over and over but how would I go about playing 20 different short sentences each time you press select? I'm still new to this and it's hard wrapping my head around arrays and families. That what I need to use, right? Thanks everyone!