Godot Version
4 Or New
Question
Title: Storybook, practice, structure
I hope to make a story book with “pictures”, “text”, “talk” and “text questions and answers”.
I found the “dialogue plug-in”, but I’m not familiar with how to use it.
I probably know that I can select “large paragraph”, but I don’t know how to save and restore to “a line of text”.
The author only said, “Someone has asked, so you have to find it yourself.”
I want to control “the size of the text frame and picture frame on each page”,
For example, “There are no pictures on pages 2 and 3, and the text takes up the entire screen,
There are pictures on pages 4 and 5, but the pictures occupy 2/3 at the bottom”.
If you think it is too troublesome, you can not control the “size of text frame and picture frame”.
Each page has buttons “Previous Page”, “Next Page”, “Favorite” and “Ask a Question”.
I don’t understand “what variables should be used”
“How is the code structured?”
“Should we change scenes every page?”
“Should I use simple original code or a plug-in?”
“Can the original code simply save and restore the “seen page”?”
I have found “Plug-in that saves variables”, but I don’t save “Which line is seen in the dialog plug-in”,
The “conversation plug-in” is the “exclamation point icon”,
I am a complete newcomer with no experience. I hope to complete it as soon as possible within these 7 days. This is a very important life event.
No one paid attention to me. I suspected it was very simple.
But I’m not familiar with the program and the logic of this software.
The way I thought of was "
Use “Text Node” and “Graphic Node”, press “Next Page” page +=1,
Text title 1=“Main title 1”, Text title 2=“Subtitle 1”, Page=1,
Last text title 1 = “Main title 1”, last text title 2 = “Small title 1”, last page = 1
If texttitle1 != last texttitle1 and texttitle2 != last texttitle2 and page != last page,
{If text title 1=“big title 1” and text title 2=“small title 1” and page=1,
(Text=“I don’t know how to program”, last text title 1=“big title 1”, last text title 2=“small title 1”, last page=1),
Otherwise, if page=2, (text=“no one cares about me”), picture=cry.png, picture.position=2/screen height, record the "last title and page(), save these variables to “file”(),
Otherwise, if page = 11, (title 2 = “subtitle 2”, page = 1, record to “last title and page”(), save these variables to “file”()).
If title 1 = main title 1, title 2 = subtitle 2, page = 1, (text = “I’m enlightened”, sound = surprise.wav, record to “last title and page”, save variables)
”.
Is this better? Is there a better way?
Because it is very troublesome to change, I hope I choose the right path from the beginning.
It is possible for me to judge separately in more detail, for example “if title 1 = 1 {if title 2 = 1 (if page = 1,…, if page = 2, …) if title 2 = 2 (if page = 1 ,…}”.
The plug-in is very complicated, but my logic is very simple. I doubt that I thought wrongly.
I am not familiar with nodes, such as “the order of camera, canvas layer, viewport and sub-viewport”. I hope you can teach me “sequential logic or how to remember the order”.
Now I’m starting to figure out how to do “enumeration” and “read the enumeration and display all titles into the menu”.