How do a make a dialogue system were when i go up to objects or NPCs with more than 1 thing to say I can simply keep pressing a key "Z" for example, until I the last line of text. you know, just like in any other game.
I'm able to get things to say 1 line of dialogue, but when i press Z i want them to say another thing but don't want to keep putting text objects on the screen.
Example i wanna be able to do this-
I walk up to an NPC or object and press "Z"...........
NPC "hello player, are you looking for an item shop?"
key pressed "Z"
NPC "well you'll first need to go over the hill"
key pressed "Z"
NPC "then take a left by the river"
key pressed "Z"
NPC "Then you'll finally reach your destination"
key pressed "Z"
NPC "nice talking with you, be safe"
-end