Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: I need help with an OCARINA  (Read 1568 times)

0 Members and 1 Guest are viewing this topic.
I need help with an OCARINA
« on: August 15, 2008, 05:21:57 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 61
Hey all, I've been trying to find a way to figure out how to make an ocarina example like those found in MM and OOT, but I can't what to do. I tried using keyboard string, but I really just want to use Z, up,down, left and right...can you help me?
Logged

mit

Re: I need help with an OCARINA
« Reply #1 on: August 25, 2008, 02:08:20 am »
  • QBASIC programmer since age 4. Take that, world.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 1079
What language? Gamemaker I assume - it'd help if you use the little icon next time.


I can't be bothered to do it for you right now, but basically you need to make an array of the last eight or so notes that you "played". Each time a note is played, shift the array along and check for any patterns that match songs you've got in it.
Logged
Programmer / Spriter / Level designer / Game Director / Web Designer / Music Sequencer for
Random Highscore table:

Play the Kousou Arcade today!
  • Kousou Games

mit

Re: I need help with an OCARINA
« Reply #2 on: August 25, 2008, 09:14:21 pm »
  • QBASIC programmer since age 4. Take that, world.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 1079
Just for the sake of it, I made an ocarina example anyway.


http://www.kousougames.com/data/downloads/counter.php?file=Ocarina
Logged
Programmer / Spriter / Level designer / Game Director / Web Designer / Music Sequencer for
Random Highscore table:

Play the Kousou Arcade today!
  • Kousou Games
Re: I need help with an OCARINA
« Reply #3 on: August 27, 2008, 08:32:22 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 61
Cool, but I tried it and I can't get it to play any more than 6 notes, how would I be ably to use 8?
Logged

mit

Re: I need help with an OCARINA
« Reply #4 on: August 28, 2008, 11:40:21 pm »
  • QBASIC programmer since age 4. Take that, world.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 1079
Of course it can play 8 notes - that's the default, do you mean you want it to recognise a song longer than 6?


When it recognises Epona's song it cuts it to 6 notes because that's the length of the song. If you copy and paste that code, you'll need to change the string_copy values if you're checking for a longer song.
Logged
Programmer / Spriter / Level designer / Game Director / Web Designer / Music Sequencer for
Random Highscore table:

Play the Kousou Arcade today!
  • Kousou Games
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.088 seconds with 48 queries.