- Jun 2, 2018
- 543
- 686
I got problems. Ren'Py doesn't care about my variables and I can't seem to call a video with a variable.
Some Poopy is defined in some python code:
Poopy is a .webp file name and path name.
Now check this out:
"The variable Poopy doesn't exist"... like for real? Cause I think it does.
Cause I've been using it successfully until this one line of movie code.
I'm missing some very, very minor detail here and I'm out of gas. I went back and made some functions which required functions which required me to redo almost all of my code in order to use:
Which returned "Random number is not defined"... turns out that every variable in my code needed another variable to be "defined" in such a way that would please Goddess Ren'Py and I'm out of gas. But that isn't what defeated me... THIS did:
It works!!!
Image 'game_video' not found... like for real.
That means I wasted my entire day and I don't know what the word variable means. I don't even know what my question is anymore.
I want the variable to be defined in a python block and use it to show a video... I think that's all I need. Maybe a link to a "What variables really are in Ren'Py" video too. (That wasn't sarcasm)
Thanks Team
Some Poopy is defined in some python code:
Python:
python:
total_count = len(big_list)
random_number = renpy.random.randint(0, (total_count -1))
if click_type == "whatever" and len(big_list) > 0:
random_other_number = renpy.random.randint(0, (other_image_count -1))
Poopy = big_list[random_other_number]
else:
Poopy = big_list[random_number]
Now check this out:
Python:
image game_video = Movie(size=(1920,1080), channel="movie", play="[Poopy]" , loop=True)
show game_video
Cause I've been using it successfully until this one line of movie code.
I'm missing some very, very minor detail here and I'm out of gas. I went back and made some functions which required functions which required me to redo almost all of my code in order to use:
Python:
default Poopy = big_list[random_number]
Python:
image game_video = Movie(size=(1920,1080), channel="movie", play="images/movie folder/movie.webp" , loop=True)
show game_video
Python:
default game_video = "images/movie folder/movie.webp"
image game_video = Movie(size=(1920,1080), channel="movie", play="[game_video]" , loop=True)
show game_video
That means I wasted my entire day and I don't know what the word variable means. I don't even know what my question is anymore.
I want the variable to be defined in a python block and use it to show a video... I think that's all I need. Maybe a link to a "What variables really are in Ren'Py" video too. (That wasn't sarcasm)
Thanks Team
Last edited: