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.
bar value AnimatedValue(charFriendship, range = 10) xalign 0.5 yalign 0.5:
top_bar "gui/bar/friendshipBar_empty.png"
bottom_bar "gui/bar/friendshipBar_filled.png"
thumb "gui/bar/friendshipBar_thumb.png"
thumb_offset 10
to act like when this imagebutton moves with a transform at the end:
imagebutton auto "gui/buttonInteract_%s.png" action [Jump('test')] xalign 0.5 yalign 0.5 at object_float
I've tried looking around for language that could help me in this and haven't found anything. Is there a way I can go about moving a bar on the screen?
Last edited by floweringOrchid on Sat Oct 28, 2023 6:07 pm, edited 2 times in total.
transform bar_transform(t=0.5):
0.5
parallel:
linear t * (config.screen_width / config.screen_height) xalign 1.0
linear t * (config.screen_width / config.screen_height) xalign 0.0
repeat
parallel:
linear t * (config.screen_height / config.screen_width) yalign 0.0
linear t * (config.screen_height / config.screen_width) yalign 1.0
repeat
Thank you so much, this worked! I will definitely need to keep researching the language more too, as I'm a little confused as to why the usual ATL didn't work with it.
Imperf3kt wrote: ↑Sat Oct 28, 2023 12:25 am
I believe you'll need to use a CDD, creator defined displayable.
I don't have any experience using these, so cannot help more than this, sorry.
Thanks for your reply as well! I didn't know this was a thing, so I'll have to look into this too