No Sound on Device?
So I have a button that toggles music in my game and it works fine on my MBP, and I also have a change attribute game.music to 1. All the sounds and music and fine on my MBP, but on my iPhone they are nonexistent, does anyone know the fix?
Comments
http://i.imgur.com/jvcXI.png
@boygeniusstudios
Hi, as GSC can only play one Music file at a time, you don't need to change the volume of the Music. Not sure if that in itself will solve your prob, but should do....
Also, you'll need a "one-off" boolean to find out if the music file has started, to be able to use Resume Current Music.
When game.G_music is 0
Change attribute game.G_music to 1
---this next rule nested in above
When MusPlay is false
Change attribute MusPlay to true
Play Music sound: ---your music track
Otherwise
Play Music sound: Resume Current Music
Otherwise --- main one
Pause Music
Change attribute game.G_music to 0
Hope that sorts it for you.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
I see, so the music starts playing the moment you go to the main menu... got it!
Put a blank actor at the side of the menu screen - outside of the viewable area, and put in it:
Play Music --- your track
Change Attribute game.G_music to 1
So now when you go to your Options, in the button to turn music on and off, you don't need MusPlay, so what you originally had was fine (except not needing change of volume).
So in your option button for toggling the music on/pause, revised as:
When game.G_music is 1
Change attribute game.G_music to 0
Pause Music
Otherwise
Change attribute game.G_music to 1
Resume Current Music
That's a bit more straightforward now.... :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps