I'm a total noob in scripts, but I don't know where to insert the script. Help... (RMXP)
The following steps should work:
1. In the menu toolbars, select [Tools] > [script Editor]
2. Go to the very bottom script (Main)
3. Right Click [Main] > [insert]
A blank script will be inserted above main.
4. Rename the blank field to "play_movie" (using the [Name] field)
5. In the play_movie script, paste the
video code (should end up at 285-286 lines)
6. Click [Apply], then [OK]
7. Save the project
8. Outside of RPG Maker, find the file folder for the project
9. Inside of the root folder, create a folder called "Movies" (the root folder contains "Audio", "Data", "Graphics", "Game.exe", "Game.ini", "Game.rxproj", "RGSS10[x]E.dll")
10. Place the movie (.avi format) into the "Movies" folder
11. Re-open the RPG Maker project
12. To call the movie, create an event (or however you want to activate the movie)
13. Inside of the event, add a [script] (Tab 3 on RPG Maker [Event Commands])
14. The script needs to contain:
Graphics.play_movie( "Movies/[filename].avi" )
Note: [filename] is the name of your video file.
Note: If your file is not .avi, you will need to change the extension in the script to match the video file. Video support is limited to the version of windows you are using (which is why .avi is set to default).
Please let me know if this doesn't work for you!
Hello Zeus! this code looks fantastic and just like what I'd want for my project.
While I am interested in using this to play videos in-game I feel you've covered the instructions for that pretty well here but I really don't know how I would use this to show a small opening movie prior to the menu screen (due to my limited understanding of scripts and coding in general, sorry :S)
If I could get some help on how to use this to implement an opening movie to the game then that would be awesome and very much appreciated.
Although I'm not Zeus, I just tested this in a simple manner that should work for you as well (RMXP):
1. In script editor, open Scene_Title
2. Go to # Load database (default line 17)
3. Insert a new line above # Load database
4. Paste the following:
Graphics.play_movie( "Movies/[filename].avi" )
Note: [filename] is the name of your video file.
I hope this helps!