Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Chosim on Fri 17/06/2011 13:34:08

Title: A "book" in the game
Post by: Chosim on Fri 17/06/2011 13:34:08
Hi, Is it again me. (Yeah I ask very often for help)

So, this time I want to ask, how can I programm a Book what I can flip and write itself after a special event.

Example:

I open a door and in the book stand, another sentence like before.

Okay the example is not good but with my poorly english i dont come further  ;D
Title: Re: A "book" in the game
Post by: Khris on Fri 17/06/2011 13:38:09
I believe somebody wrote a module for that.

Basically you use a GUI, but two labels on there (they support word wrapping) for the text and use two buttons to turn the pages.
Store the contents of the pages in an array of strings and put it in the labels to display it.
You can append to strings, and I believe [ is used to insert a line break into a string.
Title: Re: A "book" in the game
Post by: Cabbage on Sat 18/06/2011 20:29:19
Hi Chosim. I believe you may find this useful: Journal Maker Module (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=27158.0).
Title: Re: A "book" in the game
Post by: Chosim on Sat 18/06/2011 21:12:41
Uhm, The Link of the Journal Maker is an Error 404 and my WOT alerts me.  ;D


EDIT, EDIT: Okay found another Site to download the Module.  ;) Thanks!