Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

New forum theme up and running!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Piano Tutorial
« previous next »
  • Print
Pages: [1] 2

Author Topic: Piano Tutorial  (Read 5835 times)

Offline Xen

  • (I can't think of anything to put here, stupid brain...)
  • Acolyte
  • *
  • Posts: 408
  • I am I. You are you. Let's leave it at that...
Piano Tutorial
« on: October 20, 2004, 04:25:34 PM »
I was thinking about a new tutorial to make when I thought up this. With the following steps can play a piano in your RPG. Here's the steps to making it:
1) Create a common event and call it soemthing like 'Piano', whatever...
2) Make a new variable, call it 'Piano' or whatever...
3) Make a map event that calls the common event.
4) Put the following coding in your new common event:
<>Key Input Proc: [Piano Variable]. (This event option must only have the number keys and cancel key ticked. Same with the rest)
<>Loop
<>Branch if Var [Piano Variable] is 11
 <>Play sound: C note (I'll provide sounds)
 <>Key Input Proc: [Piano Variable]
 :Else Handler
<>Branch if Var [Piano Variable] is 12
 <>Play sound: D note (I'll provide sounds)
 <>Key Input Proc: [Piano Variable]
 :Else Handler
<>Branch if Var [Piano Variable] is 13
 <>Play sound: E note (I'll provide sounds)
 <>Key Input Proc: [Piano Variable]
 :Else Handler
<>Branch if Var [Piano Variable] is 14
 <>Play sound: F note (I'll provide sounds)
 <>Key Input Proc: [Piano Variable]
 :Else Handler
<>Branch if Var [Piano Variable] is 15
 <>Play sound: G note (I'll provide sounds)
 <>Key Input Proc: [Piano Variable]
 :Else Handler
<>Branch if Var [Piano Variable] is 16
 <>Play sound: A note (I'll provide sounds)
 <>Key Input Proc: [Piano Variable]
 :Else Handler
<>Branch if Var [Piano Variable] is 17
 <>Play sound: B note (I'll provide sounds)
 <>Key Input Proc: [Piano Variable]
 :Else Handler
<>Branch if Var [Piano Variable] is 18
 <>Play sound: 2nd C note (I'll provide sounds)
 <>Key Input Proc: [Piano Variable]
 :Else Handler
<>Branch if Var [Piano Variable] is 19 or more
 <>Key Input Proc: [Piano Variable]
 :Else Handler
<>Branch if Var [Piano Variable] is 10
 <>Key Input Proc: [Piano Variable]
 :Else Handler
<>Branch if Var [Piano Variable] is 6
 <>Key Input Proc: [Piano Variable] (This Key Input MUST have everything back the way it was before the event started. I think the first 7 boxes must be ticked, depends on wht you already had it)
 <>End Event Processing

One thing I'm not sure about on this is if it interferes with other stuff in your game that use the numbers too.

About the sounds, I have them so I'll provide them. If I can attach a zipped folder with them here, I'll do that. Someone please tell me if it is allowed.
Logged
LINKS - 'cause I can never think of anything else better to show in my sig...
Star-Scape
Dragon Twilight - The Website
My (boring) Life
RPG-Knights

Offline AsakuraHao2004


  • RAM-TORTOISE!!
  • Exemplar
  • *
  • Posts: 1,623
  • AIM: dakutenshisdemon YIM: desimodontidae
(No subject)
« Reply #1 on: October 20, 2004, 07:21:40 PM »
Good, but if you have enough skill to edit that and make your own tunes, wouldn't making midi's be easier?
Logged
AKA Desimodontidae. If you're seeing this profile, Im probably at school.

If i were a clown, would you hold me when I'm down?/I wish I had someone to make me drown/So many people don't know that it's so damn hard to be a clown/I am the clown with the giant frown/My heart is in a state of being upside down...

Offline Xen

  • (I can't think of anything to put here, stupid brain...)
  • Acolyte
  • *
  • Posts: 408
  • I am I. You are you. Let's leave it at that...
(No subject)
« Reply #2 on: October 20, 2004, 07:25:05 PM »
Well, I sorta see it like something from FF7 and FF8....
You can get to pianos (actually, it's an organ on FF8) and play random, stupid tunes....
Just a little something...
Logged
LINKS - 'cause I can never think of anything else better to show in my sig...
Star-Scape
Dragon Twilight - The Website
My (boring) Life
RPG-Knights

Offline Red Giant

  • Leader
  • *
  • Posts: 2,608
  • The best damn bio in the whole damn world. YEAH!!
(No subject)
« Reply #3 on: October 20, 2004, 07:25:54 PM »
Quote
Originally posted by AsakuraHao2004
Good, but if you have enough skill to edit that and make your own tunes, wouldn't making midi's be easier?

Wha?
What are you on about? It's just pressing numbers from 0-10.

Very good tut, Xen. Thumbs up!
Logged

Offline Xen

  • (I can't think of anything to put here, stupid brain...)
  • Acolyte
  • *
  • Posts: 408
  • I am I. You are you. Let's leave it at that...
(No subject)
« Reply #4 on: October 20, 2004, 07:33:10 PM »
I should of mentioned that actually....
I think you press the keys 1-8 to play the notes...
And esc to go back to the game.
Logged
LINKS - 'cause I can never think of anything else better to show in my sig...
Star-Scape
Dragon Twilight - The Website
My (boring) Life
RPG-Knights

Offline AsakuraHao2004


  • RAM-TORTOISE!!
  • Exemplar
  • *
  • Posts: 1,623
  • AIM: dakutenshisdemon YIM: desimodontidae
(No subject)
« Reply #5 on: October 20, 2004, 07:43:09 PM »
Oh.. OK, i didn't read clearly enough the 1st time.. Yeah, by using some variables and fork options I could make you get an item by playing the right notes! AWESOME!!

Edit: I want the sounds. It's fine as long as you didn't steal them from some site.
Logged
AKA Desimodontidae. If you're seeing this profile, Im probably at school.

If i were a clown, would you hold me when I'm down?/I wish I had someone to make me drown/So many people don't know that it's so damn hard to be a clown/I am the clown with the giant frown/My heart is in a state of being upside down...

Offline Xen

  • (I can't think of anything to put here, stupid brain...)
  • Acolyte
  • *
  • Posts: 408
  • I am I. You are you. Let's leave it at that...
(No subject)
« Reply #6 on: October 20, 2004, 07:48:25 PM »
I made 'em myself actually...
With the help of a midi maker and midi to wav converter...
Quite simple....
I could put the sounds here in a compressed folder but I'm not sure if that's allowed...
Logged
LINKS - 'cause I can never think of anything else better to show in my sig...
Star-Scape
Dragon Twilight - The Website
My (boring) Life
RPG-Knights

Offline AsakuraHao2004


  • RAM-TORTOISE!!
  • Exemplar
  • *
  • Posts: 1,623
  • AIM: dakutenshisdemon YIM: desimodontidae
(No subject)
« Reply #7 on: October 20, 2004, 07:49:54 PM »
Course it is! Especially if it's your own work. The only thing you have to worry about is if it's over 524288 bytes.
Logged
AKA Desimodontidae. If you're seeing this profile, Im probably at school.

If i were a clown, would you hold me when I'm down?/I wish I had someone to make me drown/So many people don't know that it's so damn hard to be a clown/I am the clown with the giant frown/My heart is in a state of being upside down...

Offline Xen

  • (I can't think of anything to put here, stupid brain...)
  • Acolyte
  • *
  • Posts: 408
  • I am I. You are you. Let's leave it at that...
(No subject)
« Reply #8 on: October 20, 2004, 07:52:13 PM »
It's bigger than that....
Logged
LINKS - 'cause I can never think of anything else better to show in my sig...
Star-Scape
Dragon Twilight - The Website
My (boring) Life
RPG-Knights

Offline Xen

  • (I can't think of anything to put here, stupid brain...)
  • Acolyte
  • *
  • Posts: 408
  • I am I. You are you. Let's leave it at that...
Sorted!
« Reply #9 on: October 20, 2004, 08:08:07 PM »
Go to my site (check sig) and go to downloads page...
Damn! Freewebs has crappy download speeds....
Hmm.... _sweat_
Logged
LINKS - 'cause I can never think of anything else better to show in my sig...
Star-Scape
Dragon Twilight - The Website
My (boring) Life
RPG-Knights

Offline Sephiroth rocks

  • Acolyte
  • *
  • Posts: 479
(No subject)
« Reply #10 on: October 20, 2004, 08:17:29 PM »
Yeah, Freewebs sucks! When your sites grows bigger you'll probably have to change host. Anyway, back on topic nice tut! But the rather large sizes of the wav files ruins it a lil.
Logged

Offline Xen

  • (I can't think of anything to put here, stupid brain...)
  • Acolyte
  • *
  • Posts: 408
  • I am I. You are you. Let's leave it at that...
(No subject)
« Reply #11 on: October 20, 2004, 08:20:45 PM »
Yeah. The WAVs are a little too big for their contents...
OFFTOPIC: I'll probably relocate soon...
Logged
LINKS - 'cause I can never think of anything else better to show in my sig...
Star-Scape
Dragon Twilight - The Website
My (boring) Life
RPG-Knights

Offline Almeidaboo

  • Leader
  • *
  • Posts: 2,384
  • Attor...nope, software developer now!
(No subject)
« Reply #12 on: October 21, 2004, 04:55:45 PM »
Nice tuto...not for noobs though. But it opens a large variety of possibilities, specially with puzzles...or, it could be the central subject of a story huh! Congrats Xen! :bend:
Logged

Sig by Lucas_irineu

Offline Snake Eater

  • keeps on trying until I run out of cake
  • Exemplar
  • *
  • Posts: 1,318
(No subject)
« Reply #13 on: October 23, 2004, 12:59:18 AM »
Good Job!
Logged

Offline Robotam

  • Member
  • Exemplar
  • *
  • Posts: 1,346
(No subject)
« Reply #14 on: October 28, 2004, 07:59:15 PM »
Yes, it works perfectly. ^^
Well done!  :bend:
Logged
Whoo, whoo, whoo, whoo!
http://i3.photobucket.com/albums/y90/Giga_Illusion/NewGetbackers1.gif

  • Print
Pages: [1] 2
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • Tutorials »
  • Piano Tutorial
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum