I am a long time reader, first time poster here (yay my first game related post!). I have been working on some game display tests for a while now and I have run into a problem that I cant figure out. I am trying to make an animated Character Image appear beside the text box. (Thank You very much for adding in the show_side_image function!). I have made a blinking animation for this image as an animation, which works but dosen't feel random enough. I have been trying out SMAnimation and here is the the problem that I am running into. When I add the SMAnimation to the side_image, the image appears in the top right of the screen and not in the position of the side image.
Here is the code I am using to do this.
Code: Select all
$ eside = Character('Eileen',
color="#c8ffc8", what_slow_cps=20,
ctc=anim.Filmstrip("sakura.png", (20, 20), (2, 1), .30, xpos=760, ypos=560, xanchor=0, yanchor=0),
ctc_position="fixed",
window_left_padding=160,
#show_side_image=Animation("eileen_h_side_1.png", 1.0, "eileen_h_side_2.png", 0.1, xalign=0.0, yalign=1.0))
show_side_image=anim.SMAnimation("open", anim.State("open", "eileen_h_side_1.png"), anim.State("close", "eileen_h_side_2.png"), anim.Edge("open", 1.0, "open", prob=4), anim.Edge("open", 0.25, "close"), anim.Edge("close", 0.25, "open"), xalign=0.0, yalign=1.0))
Thanks
Phylon
P.S. Thank you So much for your Ren'py work PyTom, I have been looking for this type of editors for Years! you have made one Professional Game Developer very happy!