How do I delay part of the text in a gamebook game

RavianGamingIndustries
26 Nov 2016, 01:41

Like, what i want to do is have a section of text show up then i want it to wait a bit before showing the rest of the text,

like here's and example,
lets say this is paragraph
number one, so i want
this to show up and then

(i want there to be a delay before it shows paragraph two)

And after that delay,
paragraph two, represented
by this text, will show,
so how do i do this?


OurJud
26 Nov 2016, 02:34
msg ("This is paragraph one.")
SetTimeout (6) {
}
msg ("This is paragraph two.")

Breakdown:

Click 'room' tab on the room you want to run the script.
Change 'Text' to 'Run script'
Click 'Add new script' then 'Print'
Write your first paragraph
Click 'Add new script' and scroll down to the bottom where the timers are. Choose 'Run script after a number of seconds'
Set your desired time
Repeat steps 3 to 6 for subsequent paragraphs

Deckrect
26 Nov 2016, 11:09

OurJud, great tutorial!


OurJud
26 Nov 2016, 14:44

Thanks, Deckrect. It's because I'm able to wholly sympathise when people don't know how to do things. If I know the answer to a question on here (which is rare) I like to explain it in the way I'd like others to explain any question I have.


RavianGamingIndustries
28 Nov 2016, 02:17

Ourjud, its a gamebook so there is no "room" tab


OurJud
28 Nov 2016, 03:59

Oh, I see. Missed that detail in the title. Many apologies.


quinal
08 Jan 2017, 08:40

Dammit. I really need this to work.
The only other option is downloading three seconds of silence and then using that as a sound between the two text parts.
But that method doesn't work when you've got a sound that you want to be playing over all.

There needs to be a 'wait' scripting tool in the next update.


The Pixie
08 Jan 2017, 09:10

I have not used game book much at all, but I think there is a script that runs when the page is loaded (and I seem to remember it was not obvious where to find it). You can put the code there.

msg ("This is paragraph one.")
SetTimeout (6) {
  msg ("This is paragraph two.")
}