来自Lemma Soft Forums 论坛的Ren’Py版块
[RenPy] 纯文本查看 复制代码 transform pulse:
linear 0.1 zoom 1.01
pause 0.1
linear 0.1 zoom 1.0
default speaking_char = None
init -1 python:
from functools import partial
def char_pulse(char, event_name, *args, **kwargs):
if event_name == "begin" and char != store.speaking_char:
if char != None:
tags = renpy.get_attributes(char)
str_tags = " ".join(tags)
renpy.show(char + " " + str_tags, at_list=[pulse])
store.speaking_char = char
define e = Character("Eileen", callback=partial(char_pulse, "eileen"))
define s = Character("Someone", callback=partial(char_pulse, "someone"))
label start:
show eileen at left
show someone at right
label talk:
s "Hello~"
e "Hello!"
e "Hey, I just pulsed."
e "Uuuh, not anymore, I guess..."
s "I didn't see anything."
s "Woah, I pulsed too... but not this time."
e "It seems we pulse everytime we talk."
s "That's sooooo cool."
jump talk
原帖 |