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.
So... I have this picture for my title screen, and There's a flower, thats supposed to be dripping blood from one of the petals. I already drew all the images. but now I have to code them into Renpy
##############################################################################
# Main Menu
#
# Screen that's used to display the main menu, when Ren'Py first starts
# http://www.renpy.org/doc/html/screen_special.html#main-menu
screen main_menu():
image titleimage:
add "images/QP1.jpg"
pause 0.1
add "images/QP2.jpg"
pause 0.1
add "images/QP3.jpg"
pause 0.1
add "images/QP4.jpg"
pause 0.1
add "images/QP5.jpg"
pause 0.1
add "images/QP6.jpg"
pause 0.1
add "images/QP7.jpg"
pause 0.1
add "images/QP8.jpg"
pause 0.1
repeat
# This ensures that any other menu screen is replaced.
tag menu
# The background of the main menu.
window:
style "mm_root"
use titleimage()
and my mm_root is set to #000000, but all I get is a black screen, how do i see the animation....
Where do I add that? I tried in Tag, Above where I defined it, and below MM root, but I still get a black screen... I'm not sure If MM root is hiding it or not, as MM root shows a black screen. I feel like I'm overlooking something simple.
image titleimage:
add "images/QP1.jpg"
pause 0.1
add "images/QP2.jpg"
pause 0.1
add "images/QP3.jpg"
pause 0.1
add "images/QP4.jpg"
pause 0.1
add "images/QP5.jpg"
pause 0.1
add "images/QP6.jpg"
pause 0.1
add "images/QP7.jpg"
pause 0.1
add "images/QP8.jpg"
pause 0.1
repeat
screen main_menu():
# This ensures that any other menu screen is replaced.
tag menu
# The background of the main menu.
add "titleimage"
image titleimage:
add "images/QP1.jpg"
pause 0.1
add "images/QP2.jpg"
pause 0.1
add "images/QP3.jpg"
pause 0.1
add "images/QP4.jpg"
pause 0.1
add "images/QP5.jpg"
pause 0.1
add "images/QP6.jpg"
pause 0.1
add "images/QP7.jpg"
pause 0.1
add "images/QP8.jpg"
pause 0.1
repeat
screen main_menu():
# This ensures that any other menu screen is replaced.
tag menu
# The background of the main menu.
add "titleimage"
I tried this and I still have a black screen... very confused...
EDIT! HAD TO CHANGE MM ROOT TO "titleimage" XD
I KNEW IT WAS SOMETHING STUPID!
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Hey, sorry to dig up this old thread but when I do the exact same thing I get an error equivalent to 'NameError: name "titleimage" is not defined'. 'show titleimage' in script.rpy works, so I'm not sure where I'm going wrong.