I already know how to move the displayable without the transition, by changing the blit position. I have a parent class and two children, all displayables. Here's my render method of the parent. Please point out if I'm doing something wrong with the width and height arguments, I'm not sure yet of what area I should pass to the children, since I failed to notice anything changing at all.
Code: Select all
def render(self, width, height, st, at):
canvas = renpy.Render(width, height)
# This method updates the children with the consequences of the keyboard input,
# changing their positions.
self.check_movement()
render_map = renpy.render(self.map_base, width, height, st, at)
render_char = renpy.render(self.char, width, height, st, at)
canvas.blit(render_map, (0,0))
canvas.blit(render_char, (0,0))
renpy.redraw(self, 0)
return canvas
I can't quite understand this part of the documentation, what I do understand is that I need to renpy.render a displayable, and blit that render to the parent's render, that needs to be returned. I successfully applied Transforms too, but the transition part is still kind of confusing.
Can someone show me a simple working render method that applies a MoveTransition?
And if possible, explain step by step what is happening, what is returning what, and so on.
Thank you in advance!