I noticed that the method renpy.blit or renpy.rendy (https://www.renpy.org/doc/html/udd.html) do not contain an option to rotate an imagefile and then draw it.
Since the normal label and screen language of renpy has a way to rotate Images (viewtopic.php?f=51&t=21978)
with
Code: Select all
show clockmin:
xalign 0.5 yalign 0.5
rotate 0 #This puts the minute hand at the starting position of 12
block: #Everything in this block repeats over and over
linear 3600.0 rotate 360
repeat
I thought maybe something like
Code: Select all
add custom_object
However, what do I do if my custom_object has already been added to the screen?
Since
Code: Select all
self.displayable_render = renpy.render(self.displayable, width, height, st, at)
renpy.redraw(self, 0)
render.blit(self.displayable_render, (self.x, self.y))
does not contain any option to redraw my object at a different position with a different angle.
Even though I have a lot of experience with Python I just started working with Displayables in Ren'Py so go easy on me, please.