- Aug 27, 2023
- 5
- 303
Hello, been lurking for a little while on here and I've run into a little snag developing something (in Ren'Py) and I would be very appreciative of assistance. I'm an extremely novice coder and this is the fist issue I haven't been able to solve with brute force trial and error/googling. Please let me know if it is possible at all and if so, where to start.
I have a scene with multiple elements, displaying some animations, "player stat" variables and showing other static graphics. Part of that scene's UI is a "camera zone" that is playing a spicy animation. I've placed an image button with the same dimensions on top of that animation that is essentially a "connect to camera?" button, which, when you click it, removes itself and the animation (previously hidden by the button) shows. So far so good, the effect is somewhat decent.
To make it a little more immersive, I've created a longer "connecting to camera" animation that I would like to loop once when the user clicks the "connect to camera?" button.
So essentially the effect I'm going for is: screen shows with "connect to camera" button hiding animation ---> player clicks button ---> button removes itself and plays "connecting to camera" animation once ---> final animation plays (looping), all on the same scene.
some of the relevant code elements provided below:
Thanks a lot!
I have a scene with multiple elements, displaying some animations, "player stat" variables and showing other static graphics. Part of that scene's UI is a "camera zone" that is playing a spicy animation. I've placed an image button with the same dimensions on top of that animation that is essentially a "connect to camera?" button, which, when you click it, removes itself and the animation (previously hidden by the button) shows. So far so good, the effect is somewhat decent.
To make it a little more immersive, I've created a longer "connecting to camera" animation that I would like to loop once when the user clicks the "connect to camera?" button.
So essentially the effect I'm going for is: screen shows with "connect to camera" button hiding animation ---> player clicks button ---> button removes itself and plays "connecting to camera" animation once ---> final animation plays (looping), all on the same scene.
some of the relevant code elements provided below:
Code:
image talking = Movie(play="images/animations/talking.webm", mask="images/animations/talking_mask.webm", Framedrop=False)
image camcoverani1 = Movie(play="images/animations/camcoverani.webm", mask="images/animations/camcoverani_mask.webm", Framedrop=False)
screen camcover:
imagebutton:
xanchor 0.5
yanchor 0.5
xpos 0.5
ypos 0.5
auto "buttons/camcover_%s.png"
action Hide("camcover", transition=None) #play camcoverani1?
label mtracker:
show talking:
xanchor 0.5
yanchor 0.5
xpos 0.5
ypos 0.5
#bunch of other variables/graphics displayed here too