TwinHamster ♫ Furious souls, burn eternally! ♫

Joined: 07 Mar 2004 Posts: 1352
|
Posted: Sat Oct 24, 2009 10:01 am Post subject: |
|
|
Not directly, but there are ways to fake this.
For an introductory-type scene, you can display text-boxes over a single-colored background and fade to that color, close text box, open next text box, fade in.
Example,
Code: |
# Puts up a backdrop ID 1
# Let's pretend it is entirely black.
Show backdrop (1)
#Without this, the text box would go away normally.
Suspend box advance
# Shows a text box.
Show text box (1)
# Wait for the player to finish reading and press anything.
# The script won't pass until something is pressed.
Wait for key (Anykey)
# Fading time
Fade screen out (0,0,0)
advance text box
# The screen is now all black and the textbox has been advanced.
# Show the next text box
Show text box (2)
wait (1)
fade screen in
# The new text box fades in.
|
So you don't have to continuously call the same lines of code manually, you could make use of a little script function.
Code: |
plotscript, Primary script, begin
Show backdrop (1)
Suspend box advance
Fade Box (1, 2)
### Maybe more textboxes
Advance box advance
end
|
This would be your main script.
In this example, we are going to use text boxes 1 and 2.
Code: |
script, Fade Box, Box 1, Box 2, begin
show text box (Box 1)
wait for key (anykey)
fade screen out (0,0,0)
advance text box
show text box (Box 2)
wait (1)
fade screen in
end |
This is the script called by 'Primary Script'.
It shows whatever Textbox has been identified as Box 1, does the fading bit, shows Box 2. |
|