Gw Temp

Menu

Tutorial - 'FF7-Style Piano System' by Cid_Highwind

An item about RPGMaker 2000 posted on

Blurb

Cid_Highwind writes a neat tutorial about making a piano-playing mini-game that uses the RM2K3-only 0-9 keys to sound the notes.

Body

Whew, haven't wrote tutorials in more than like, months..

When I was playing FF7 and playing on Tifa's piano at Nibelheim, I decided to make a similar tutorial on how to make an FF7-Style Piano system.

What you need
1)Input Key
2)Labels and Goto Labels
3)A simple midi program like Presto
4)Memorize BGM and Play BGM
5)Play BGM (Off)
6)Variables
7)Wait
8)Choice Events

First, you start out with putting Piano tile(s) on the map.
The common tiles of one Piano is three. Ok, to do the coding, first you must put an event in the middle of the piano, or, if they are even tiled, copy and put each in one of them.

Second, you give a choice event saying If you want to play it or not. In the "Play" Choice, put "Memorize BGM". Then, you put a Label event and its number is of course, 1. Then, put a Key Input event. Since Rm2k3 has lotsa Keys, I'll choose the Number Keys 0-9 (10-19). This will let you over 10 total keys to play in the piano (How cool is Rm2k3!?).

Make sure you didn't to also forget to chekc the "Decision" Key (5). This is the key to end the Piano process.

Now, click OK and save your game. If you have a midi music program like Presto, open that program up and make a new file. Choose one instrument. It should be a basic Piano. Press the record button, and push the first key and push stop. The sound key should be able to be heard normally. Not silent.

Then, save it and call it "Sound 1". Start a new file again and do the same thing as the first except that the Sound Key is being played to the right side of the previous one. Forgive me if you didn't understand what I said but I'm not so good at talking perfect.

After you made the 10 sounds, go back to RM2k3 and go back to the piano event. Add this code after you added the Key Input Event.

<>Branch if Var [????:Piano] is 19
<>Play BGM: Sound1
<>Wait: 0.5 Sec
<>Play BGM:(OFF)
<>Jump to Label:1
<>
:Else Handler
<>Branch if Var [????: Piano] is 10
<>Play BGM: Sound2
<>Wait: 0.5 Sec
<>Play BGM:(OFF)
<>Jump to Label:1
<>
:Else Handler
<>Branch if Var [????: Piano] is 11
<>Play BGM: Sound3
<>Wait: 0.5 Sec
<>Play BGM:(OFF)
<>Jump to Label:1
<>
:Else Handler
<>Branch if Var [????: Piano] is 12
<>Play BGM: Sound4
<>Wait: 0.5 Sec
<>Play BGM:(OFF)
<>Jump to Label:1
<>
:Else Handler
<>Branch if Var [????: Piano] is 13
<>Play BGM: Sound5
<>Wait: 0.5 Sec
<>Play BGM:(OFF)
<>Jump to Label:1
<>
:Else Handler
<>Branch if Var [????: Piano] is 14
<>Play BGM: Sound6
<>Wait: 0.5 Sec
<>Play BGM:(OFF)
<>Jump to Label:1
<>
:Else Handler
<>Branch if Var [????: Piano] is 15
<>Play BGM: Sound7
<>Wait: 0.5 Sec
<>Play BGM:(OFF)
<>Jump to Label:1
<>
:Else Handler
<>Branch if Var [????: Piano] is 16
<>Play BGM: Sound8
<>Wait: 0.5 Sec
<>Play BGM:(OFF)
<>Jump to Label:1
<>
:Else Handler
<>Branch if Var [????: Piano] is 17
<>Play BGM: Sound9
<>Wait: 0.5 Sec
<>Play BGM:(OFF)
<>Jump to Label:1
<>
:Else Handler
<>Branch if Var [????: Piano] is 18
<>Play BGM: Sound10
<>Wait: 0.5 Sec
<>Play BGM:(OFF)
<>Jump to Label:1
<>
:Else Handler
<>Branch if Var [????: Piano] is 5
<>
:Else Handler
<>
:End
<>
:End
<>
:End
<>
:End
<>
:End
<>
:End
<>
:End
<>
:End
<>
:End
<>
:End
<>
:End
<>

There you go! You have just one more thing to do... On the ":End" (On the bottom of a choice event), just put the Play Memorized BGM event.

This should work for you. It did for me. If it didn't work well for you, that means you are either a criticizer or you suck at programming. I don't mean to be threatful, heh.

Thanks for reading and I hope you can add this to your game.

E-mail: Cid_Highwind15_@Hotmail.com or esg@dbzmail.com
Website: www.geocities.com/thehighwind2004/index.html