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.
it helps to hide this imagebutton, but it is still clickable before animation starts.
UPD
i send the code where positions of the buttons are same, which is mistake. In my original code positions of buttons are different, so the problem is not solved.
It's possible to prevent the user from clicking it for a set amount of time. I would try it this way although there may be an easier way. In your main code, you can add a variable just before you call the screen.
screen my_buttons:
imagebutton xanchor 1.0 yanchor 1.0 xpos 300 ypos 200 at anim_01:
focus_mask True
idle "images/button01_idle.png"
hover "images/button01_hover.png"
action If(loaded, "label01") #<--- change the action here
imagebutton xanchor 1.0 yanchor 1.0 xpos 300 ypos 200 at anim_02:
focus_mask True
idle "images/button02_idle.png"
hover "images/button02_hover.png"
action If(loaded, "label02") #<--- change the action here
timer 1.6 action SetVariable("loaded", True) #you can change the 1.6 to whatever time value you need to fit the duration of the animation