Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

fading texts

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
AppleStem
I Like Apples and Stems




Joined: 03 Sep 2009
Posts: 9
Location: Castle of Paradox

PostPosted: Fri Oct 23, 2009 7:58 pm    Post subject: fading texts Reply with quote

can you fade into a text slowly then fade out slowly then go to a new text box.

yea i dont know where to start...
Back to top
View user's profile Send private message Visit poster's website
TwinHamster
♫ Furious souls, burn eternally! ♫




Joined: 07 Mar 2004
Posts: 1352

PostPosted: Sat Oct 24, 2009 10:01 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail AIM Address
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Sun Oct 25, 2009 4:42 am    Post subject: Reply with quote

There are several ways to do this. I wrote a script for you, and posted it at 'Scripts:Textbox fade in'. Those scripts can be modified if they're not suitable for you.
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group