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.
I'm developing a "hit the target" game and I've gone as far as randomly creating a new path for my target.
My problem right now is that I'm creating a image using Solid() and this needs to be a imagebutton that i can use inside a screen that will be called on a minigame, here's my code:
scene bg room
image solid:
Solid("#0000cc", xysize=(200, 200))
xalign 0.0 yalign 0.0
linear 1.0 xalign renpy.random.random() yalign renpy.random.random()
linear 1.0 xalign renpy.random.random() yalign renpy.random.random()
repeat
show solid
Later I'm going to move the random logic as a parameter for the screen but my problem right now is that I cannot use "solid" the image I created as an image for the imagebutton idle statement.