I'm trying to load a movie from a random value from a defined array to a variable :
I have a simple array/list such as stage_loop = ["path/to/movie.webm","path/to/movie.webm","path/to/movie.webm","path/to/movie.webm"]
When I try :
Code: Select all
$ selected_movie = random.choice(stage_loop)
image current_scene = Movie(play=selected_movie)
show current_scene
Code: Select all
image current_scene = Movie(play="path/to/movie.webm")
show current_scene
I'm puzzled because I don't get any error when I try to give my variable a random choice from my array. I know my variable is correct when I output the result to the screen using a sayer (i.e. narrator "Var = [selected_movie]", I see on screen the path/to/movie.webm). I don't get any error message; only a black screen.
My question is : is it possible to load an image movie from a variable?