A lot of googling got me some hints but I was never quite sure what I was doing wrong for it not to work. Some posts also go back to 2011 and I imagine since then the code has developed and some bits may not even work anymore.
The problem is also that I'd like randomly timed blinking to always occur, however lip moving should occur only during the characters text appearing.
Here's what I got so far (no animation seems to work)
Code: Select all
init python:
config.debug_sound = True
speaking = False
def randompause(min,max):
return renpy.random.randint(min,max)
image selina = "char/selina_base.png"
image selinaeyes = "char/selina_eyes1.png"
image selinabrows = "char/selina_eyebrows1.png"
image selinamouth = "char/selina_mouth1.png"
image selina_cold lip sync:
"char/selina/Cold/selina_mouth2.png"
pause (randompause(1,5))
"char/selina/Cold/selina_mouth3.png"
pause (randompause(1,5))
"char/selina/Cold/selina_mouth1.png"
repeat
image selina_blink lip sync:
"char/selina/Cold/selina_eyes1.png"
pause (randompause(0.5,4.5))
"char/selina/Cold/selina_eyes2.png"
pause (randompause(0.3,0.6))
and then when I later try to display this character:
Code: Select all
show selina at center
show selinabrows at center
show selinaeyes at center
show selinamouth at center
with moveinright
Any help but be tremendously appreciated! Maybe there's a working sample game with very simple code out there where one could have a look ?