A game and a book
sortfod
Member Posts: 0
Hi
I'm dooing a game and a book which is related to the game and otherwise.
But i can't se how I can make pages with only text - is that possible?
Regards
Hubert S. Freynhofer
Denmark
I'm dooing a game and a book which is related to the game and otherwise.
But i can't se how I can make pages with only text - is that possible?
Regards
Hubert S. Freynhofer
Denmark
Comments
Use tables.
Define a global variable called 'PageNumber' - make it an integer.
Make a table called Table_Text (you can call it whatever you like, I just like stuff to be descriptive of what it is!).
In this table, place text for each page in column 1. The rows act as your page numbers.
Place an actor in a scene. This will be where your text is displayed.
In this actor, put a 'display text' behaviour.
Click the 'wrap inside actor' checkbox.
Press the 'e' next to the empty field and select 'table cell value' from the second drop down.
Then in the first bracket select the table game.Table_Text that you made earlier.
Next select the attribute PageNumber you made earlier.
Next put a 1 (this is the column).
Make two more actors - 'Next' and 'Back'.
In the 'Next' actor create a rule that says 'if touched, change attribute PageNumber to PageNumber+1'
In the 'Back' actor create a rule that says 'if touched, change attribute PageNumber to PageNumber-1'
That should get you started I think!
Cheers,
QS :
D
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io