Animating the text box/ say screen to wipe left/ right
Posted: Wed Jul 11, 2018 12:34 pm
by Kinmoku
Hi all,
I'm struggling to figure out how to animate the say screen so that each time the text box appears it wipes on (left to right) and when it disappears it wipes off (left to right). My GUI looks like a paint stroke, to give you an idea of the effect I'm trying to achieve!
screen say(who, what):
style_prefix "say"
window at say_window_animation:
id "window"
if who is not None:
window:
id "namebox"
style "namebox"
text who id "who"
text what id "what" at text_fade_in
Any ideas? I don't know how to use ATL for left/ right wipe effects.
Re: Animating the text box/ say screen to wipe left/ right
Posted: Mon Jul 16, 2018 1:42 am
by philat
I'm not sure what you mean by wipe. Would slide in/out suffice? That's as simple as
xoffset -1980 # assuming this is your horizontal resolution
linear 0.5 xoffset 0
and vice versa for the opposite. That said, the real headache is figuring out when the effect triggers -- i.e., because the screen is refreshed every line of dialogue, having the effect apply only when the textbox first comes up or is last hidden (as opposed toe very line) is tricky. That is, assuming this issue hasn't been solved in a recent update -- I haven't been paying as close attention to 7.0.
Re: Animating the text box/ say screen to wipe left/ right
Posted: Mon Jul 16, 2018 5:36 am
by Kinmoku
philat wrote: ↑Mon Jul 16, 2018 1:42 am
I'm not sure what you mean by wipe. Would slide in/out suffice? That's as simple as
xoffset -1980 # assuming this is your horizontal resolution
linear 0.5 xoffset 0
and vice versa for the opposite. That said, the real headache is figuring out when the effect triggers -- i.e., because the screen is refreshed every line of dialogue, having the effect apply only when the textbox first comes up or is last hidden (as opposed toe very line) is tricky. That is, assuming this issue hasn't been solved in a recent update -- I haven't been paying as close attention to 7.0.
Thanks for your reply.
I don't mean a slide, unfortunately. I'm after a wipe so it looks like the UI is being painted on. A wipe is when the image/ text box stays still but appears from the left (or the right). Think of Star Wars' terrible scene transitions, haha! https://i.stack.imgur.com/JIPdT.gif
I know I could create this effect with imagedissolve + a gradient image, but I don't think that works with ATL, does it?
I'd like it to show up every time a different character talks. The reason being that each character's text box will be in a different location.
Re: Animating the text box/ say screen to wipe left/ right
Posted: Mon Jul 16, 2018 7:21 am
by Per K Grok
Kinmoku wrote: ↑Mon Jul 16, 2018 5:36 am
---
I'm after a wipe so it looks like the UI is being painted on. A wipe is when the image/ text box stays still but appears from the left (or the right). Think of Star Wars' terrible scene transitions,
Kinmoku wrote: ↑Mon Jul 16, 2018 5:36 am
---
I'm after a wipe so it looks like the UI is being painted on. A wipe is when the image/ text box stays still but appears from the left (or the right). Think of Star Wars' terrible scene transitions,
screen say(who, what):
style_prefix "say"
window at say_window_animation:
id "window"
if who is not None:
window:
id "namebox"
style "namebox"
text who id "who"
text what id "what" at text_fade_in
I added an alpha at the beginning of the crop to soften it a little.
I'd love to know how to stop this effect from repeating when the dialogue is on a pause (eg: k "Oh.\n{w=1}My mum says...") or even when the same character is talking/ the same window is being used.
Re: Animating the text box/ say screen to wipe left/ right
Might look a little smoother too if you get it behaving correctly
Of course! Thanks
Edit: Just tried it and it's SO smooth! I love it.
Re: Animating the text box/ say screen to wipe left/ right
Posted: Mon Jul 16, 2018 2:38 pm
by trooper6
I imagine you could also use a dict transition, keyed to just the screen layer rather than ATL, no?
Re: Animating the text box/ say screen to wipe left/ right
Posted: Sun Jul 22, 2018 10:36 am
by Per K Grok
I just used the wipe effect for a medical examine ray.
Worked very nicely (I think).
I had probably not got the idea to do this effect without this thread.