I came across a chunk of code that allowed me to turn this:http://i.imgur.com/Sb2gKYi.png
into a dancing character, yet I really don't know what I'm doing.
Code: Select all
def PortraitStrip(st, at, image, width, frames):
f = min([frames, math.trunc(st * 10)])
frame = im.Crop("characters/%s" % image, (f * width, 0, width, 640))
return frame, .1
init:
image anubis dance:
DynamicDisplayable(PortraitStrip, "anubis/dance1.png", 480, 11)
pause 1.3
repeat
start:
show anubis dance
The next question, I also would like for the dancing anubis to say random things, in random order, such as "weee", "Look at me, I'm Dancing", " Around around I go", "I'm starting to get dizzy". Sort of background stuff, that doesn't affect the story. So again, the filmstrip, add all the lines to the different frames, and have it pick a random frame. I think I know how to do this, but while I'm asking questions, I figured I'd ask this as well.
Any help?
Thanks in advance.