Movie -- No Sound

31. Property Name: movie  --  Property Type: String
  • Logic Editor >> Properties tab >> Property Name: movie
     
  • Logic Editor >> Properties tab >> Property Type: String
Note:
  • The string property must be named movie.  
     
  • The code in Movie.py looks for a string property named movie.
32.  Save your blend
  • Info menu >> File >> Save As
Note:
  • For this tutorial, I'm saving my blend with the name Movie.blend
33.  Download the Big Buck Bunny trailer
  • Logic Editor >> Properties tab >> Path: BBB_Trailer.ogg
Download:

 

34.  Enter the path to movie
  • Logic Editor >> Properties tab >> Path: BBB_Trailer.ogg
Note:
  • For this tutorial, I'm saving the movie BBB_Trailer.ogg to the same folder as the saved blend.  
     
  • If the movie is in a subfolder, include the path to the subfolder.  
     
  • In other words, if BBB_Trailer.ogg is in in subfolder myMovies, you would use: \myMovies\BBB_Trailer.ogg
35.  Add a second game property to the Plane
  • Logic Editor >> Properties tab >> Add Game Property button
Note:
  • We are adding the material name and the movie name as python variables (game properties).
     
  • This way we can use one (and only one) python script for all the movie screens in the game.