i just need a little bit of help with some things.
i want to make a platformer where i can talk to people. i don't mean respond or input text but, i press and button and they speak. i press it again and it takes me to the next line of dialogue.
now i can make a text box appear but when it comes to doing it for a complete game with diffrent dialogue from different npc's , i have no clue how to implement this.
for example in castlevania dawn of sorrow (or any of the newer ones) they have cutscenes and shop keepers. i assume the text is stored somewhere, and i assume when you come in close contact and press a button the text is extracted and added to a text box in a certain way. i assume an array is involved .
how you code/implement this is a head scratcher, i just want my player to be able to talk to people and read signs and what not without having to code a specific text box for each situation.
i know from rpg maker each npc or character or even object has a way to store text and code . when you interact with them its extracted and read accordingly. i have been trying to find a way to have each npc store additional lines of text and have them extracted in specific situations since that system is so easy to use. (you have to boots, you dont have the boots)
everything i have tried has been extremely resource heavy and obviously the wrong way to go about it (event sheets for each npc or an invisible text box for each npc)
tl;dr how do you read and write to a text box, similar to reading a sign in a game or talking to a npc. where do i store the text and how do i extract it. also how will i do this for multiple npc's in a game with multiple instances. the rpg maker dialogue system is a great example of what im looking for in a resource economic way .