I want to make a special effect for important sentences. My game is composed of dialogues, and sometimes, i want to highlight a sentence by showing it above everything. But when i do so, the text is barely readable because of the other sentences.
Here is the screen of my problem:
So I want either to :
- change the alpha/color of the previous sentences (I already tried to change gui.text_color = '#ffffff20' but it only updates the text color for the next sentences)
- show a black image with 50%alpha above everything including the text (changing zorder is useless)
By the way, this is what the code looks like:
Code: Select all
label message_important(who, name, important_sentence):
$ gui.text_color = '#ffffff50'
who "[important_sentence]{fast}{nw}"
show black zorder 0:
alpha 0.0 #pb : not above text !!!
linear 0.2 alpha 0.3
show text "{size=48}{color=#a0a0a0}[name]{/color}{/size}" as sayer with Dissolve(0.3):
xalign 0.5
yalign 0.3
show text "{size=+10}[important_sentence]{/size}" as saying with Dissolve(0.2):
xalign 0.5
yalign 0.5
n ""
$ gui.text_color = '#ffffffff'
hide black with Dissolve(0.2)
hide sayer with Dissolve(0.2)
hide saying with Dissolve(0.2)
return
Thank you for reading and sorry for my rough English