Jump to content


Photo

Music Visualizer Game


  • Please log in to reply
8 replies to this topic

#1 Merlocker

Merlocker

    No Imagination

  • GMC Member
  • 450 posts
  • Version:GM8

Posted 03 August 2012 - 03:56 PM

Hello GMC!!
I'm wondering is there a way to make a game like this http://beathazard.wi...eat_Hazard_Wiki?
I don't want to make it exactly like that but I want a visualizer background, like you see in I tunes player and also Windows Media Player.
First is there a way for the player to select his music and play it in the game? e.g. Go to music folder (while in game) and select the folder of his/her music then have the game play it. Or just select the music he.her wants to play to.
Second, is there a way to make a "makeshift" visualizer? I figure Particles would be involved, but I wan it to "go" with the music.

Any Tips on how to do this, or a way to start off would be appreciated.
Spoiler

Caution if you have strobe light seizures DO NOT WATCH!!

Edited by Merlocker, 03 August 2012 - 04:00 PM.

  • 1

#2 Misu

Misu

    Awesometasticness!

  • GMC Member
  • 438 posts
  • Version:GM:Studio

Posted 03 August 2012 - 04:14 PM

This is a bit too advance for asking in a novice page but I think you can make something similar to it but it wont be realistic than the visualizer in Beat Hazard, that's even more complicated for Game Maker to render. If you can program a dll that can create it, I doubt it'll be successfull due to possible lag. I think you can make a similar not too seamless particle effect of those effects by using sprites of glowing fog and fireworks that strobe but like I say, it'll lag and mostly I don't know any possible way to make it follow the music rhythm.


EDIT: I found something that might help for creating a music visualizer.

Edited by MisuMen49, 03 August 2012 - 04:23 PM.

  • 1

#3 Merlocker

Merlocker

    No Imagination

  • GMC Member
  • 450 posts
  • Version:GM8

Posted 03 August 2012 - 04:23 PM

Thank-you for the reply. I figured it would be too much for GM8 to handle any ways. But Is there any way for the player to select his own music and have GM play it? That it what I most worried about at the moment.
Cause when I play some games, I would like to listen to my own music and not the games. (I know i can just have the Game music off and play mine, but that's a hassle. lol)
  • 1

#4 Misu

Misu

    Awesometasticness!

  • GMC Member
  • 438 posts
  • Version:GM:Studio

Posted 03 August 2012 - 04:26 PM

EDIT: I found something that might help for creating a music visualizer.


^^^^ perhaps this does the trick too.

Edited by MisuMen49, 03 August 2012 - 04:27 PM.

  • 0

#5 Merlocker

Merlocker

    No Imagination

  • GMC Member
  • 450 posts
  • Version:GM8

Posted 03 August 2012 - 04:29 PM

Ya, I just say the edit, lol. I'm download it now as we speak.
  • 1

#6 Misu

Misu

    Awesometasticness!

  • GMC Member
  • 438 posts
  • Version:GM:Studio

Posted 03 August 2012 - 04:37 PM

Also since I read your other post many times until I realized, you can select your own music file by using get_open_filename() and add it into the GM game.

Space Key Pressed event:
if variable_global_exists("audio"){sound_delete(global.audio)}
file=string(get_open_filename("midi file (*.mid)|*.mid",".mid"))

global.audio=sound_add(file,2,1)
sound_play(global.audio)


Edited by MisuMen49, 03 August 2012 - 04:44 PM.

  • 1

#7 Merlocker

Merlocker

    No Imagination

  • GMC Member
  • 450 posts
  • Version:GM8

Posted 03 August 2012 - 04:45 PM

that's what confuses me. file=string(get_open_filename("midi file (*.mid)|*.mid",".mid"))
think you could explain that part... i get what it does but I don't see how I would set up it on my own
Edit: I kinda get it after messing around with it.


How about where the player selects the folder of the music and the game plays them all, so when one song ends then next plays, is that possible?

Edited by Merlocker, 03 August 2012 - 04:57 PM.

  • 1

#8 Misu

Misu

    Awesometasticness!

  • GMC Member
  • 438 posts
  • Version:GM:Studio

Posted 03 August 2012 - 06:02 PM

that's what confuses me. file=string(get_open_filename("midi file (*.mid)|*.mid",".mid"))
think you could explain that part... i get what it does but I don't see how I would set up it on my own
Edit: I kinda get it after messing around with it.


How about where the player selects the folder of the music and the game plays them all, so when one song ends then next plays, is that possible?

I don't think Game Maker's get_open_filename function is capable of multi-selection. :/
But maybe if you type in the folders directory instead, you can scan that folder using some kind of array process but thats a bit complicated and Ive never attempt that before but I think its possible. I cant explain you anything on that part since I dont know a way how to program it in gml; sorry.
  • 0

#9 Merlocker

Merlocker

    No Imagination

  • GMC Member
  • 450 posts
  • Version:GM8

Posted 03 August 2012 - 06:36 PM

It's fine, I'll just work with this for now.
  • 1




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users