I'm hoping to do the following:
1. Play a random clip from a pool of choices.
2. When the clip ends, randomly pick another one from the pool.
3. Have a screen overlay that adds an imagebutton that allows you skip to the next clip.
So far I've done these two:
Code: Select all
label jumpHere:
$ randomClip = renpy.random.randint(1, 2)
if randomClip == 1:
$ renpy.movie_cutscene("ani1.ogv")
jump jumpHere
if randomClip == 2:
$ renpy.movie_cutscene("ani2.ogv")
jump jumpHere
Option 2:
Code: Select all
image ani1 movie = Movie(play="ani1.ogv")
image ani2 movie = Movie(play="ani2.ogv")
label jumpHere:
$ randomClip = renpy.random.randint(1, 2)
if randomClip == 1:
show ani1 movie # Show the clip here
$ renpy.pause(3.0, hard='True') # pause to let the animation play
hide ani1 movie # Hide the clip here
if randomClip == 2:
show ani2 movie
$ renpy.pause(3.3, hard='True') # pause to let the animation play
hide ani2 movie
jump jumpHere
Which can be kind of awkward.
So as you can see, both of them have their drawbacks. Which of the two (or possibly another way) would you suggest I use and how do I fix my problems?