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.
Hello, I'm trying to make a main menu background that's animated - but not with a video. I have already tried doing one where there's only one image that "infinitely scrolls [diagonally]".
This time though, I'm trying to make something that has multiple images.
image mmenu:
"images/background.png"
xanchor 0
yanchor 0
block:
"images/ba.png"
xpos 100
ypos 100
linear 2.0 alpha 1.0
linear 2.0 alpha 0.0
repeat
block:
"images/y.png"
xpos 200
ypos 100
linear 2.0 alpha 1.0
linear 2.0 alpha 0.0
repeat
block:
"images/ba.png"
xpos 300
ypos 100
linear 2.0 alpha 1.0
linear 2.0 alpha 0.0
repeat
block:
"images/ye.png"
xpos 400
ypos 100
linear 2.0 alpha 1.0
linear 2.0 alpha 0.0
repeat
block:
"images/n.png"
xpos 500
ypos 100
linear 2.0 alpha 1.0
linear 2.0 alpha 0.0
repeat
define gui.main_menu_background = "mmenu"
Something like that. The idea is to have a static background image, with the title sort of fading in and out. The only thing that shows up in the main menu after using the code above is the first block with ba.png(but the animation works for it, so there's that, ha).
I suspect the problem is with the usage of blocks (because I'm not too sure about them), if the problems isn't about being unable to use multiple images in... one image? It would be fantastic if anyone can tell me about possible tweaks, if not alternatives for making this. Thank you!
Last edited by Rainbow Colors on Thu May 25, 2017 11:41 am, edited 1 time in total.
~targetting every otome game at the speed of sound (because if I did it at the speed of light, I'd be time travelling)
Do you want these to be 5 separate images that are all on the screen at the same time and all fade in and out? Or do you want image 1 to fade in and out, then image 2 to fade in and out, then image 3 to fade in and out, then image 4 to fade in and out, then image 5 to fade in and out, then image 1 to fade in and out, etc?
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
trooper6 wrote:Do you want these to be 5 separate images that are all on the screen at the same time and all fade in and out? Or do you want image 1 to fade in and out, then image 2 to fade in and out, then image 3 to fade in and out, then image 4 to fade in and out, then image 5 to fade in and out, then image 1 to fade in and out, etc?
The former.
xavimat wrote:I would change the main_menu screen directly, instead of using define gui.main_menu_background = "mmenu"
I'll try that, then, thank you.
~targetting every otome game at the speed of sound (because if I did it at the speed of light, I'd be time travelling)
Hey, thank you once again for the suggestion. I think I managed to work something out, although I'm not quite sure about its efficiency or something (but hey, if it works, then that's that :D)
My undergrad compsci teacher once said: if you find yourself writing the same code more than three times, there is a more efficient way of doing what you are doing.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)