Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Hey there, in my visual novel I've successfully created layeredimages. When I animate a transparent png by itself it behaves as expected. Once I make that animated panel an attribute in a layeredimage group and plug in "panel_push", the animation gets applied to every group being displayed instead of the designated group.
Anyone know what might be causing this and moreover, how to make the animation only apply to the group "actionpanel"? Thanks in advance.
thefused wrote: ↑Mon Feb 26, 2024 4:41 pm
Anyone know what might be causing this and moreover, how to make the animation only apply to the group "actionpanel"? Thanks in advance.
thefused wrote: ↑Mon Feb 26, 2024 4:41 pm
Anyone know what might be causing this and moreover, how to make the animation only apply to the group "actionpanel"? Thanks in advance.
transform mytrans:
linear 0.05 xoffset -4 yoffset 4
linear 0.03 xoffset 3 yoffset -3
linear 0.06 xoffset -2 yoffset 5
linear 0.03 xoffset -2 yoffset -3
linear 0.07 xoffset -2 yoffset 5
linear 0.05 xoffset -2 yoffset -3
linear 0.08 xoffset -0 yoffset 0
repeat
layeredimage pagesequential:
always:
"bg1"
group actionpanel:
attribute panel_push "panel01" at mytrans
attribute panel_lock "panel01"
group comicborder:
attribute border_static default "border"
Yeah I tried something like this at first actually, then I'd read somewhere on the forum to try putting the animation in an image by itself. Results came out the same. Thanks though. =/
when offset is applied to inner image, it partially moves outside of image boundaries, changing them. This makes whole image be repositioned. For example if you aligned your image around 0.5, 0.5, after first line of animation it will move 2 pixels to the bottom-left.