Anybody notice music changes!? :)
chosenonestudios
Member Posts: 1,714
I just noticed, on an update for one of my games (made with .8.4) that if you have music turned off in your settings and start playing music before you boot up your game, dun dun dun, the music keeps playing!
I'm pretty excited about this, while it's not direct iPod music controls, it's a step in the right direction, maybe it's a bug on mine I dont know, but I'm pretty stoked, and you can use the double tap home button to do basic functions such as changing the song;) Good work Gendai!
I'm pretty excited about this, while it's not direct iPod music controls, it's a step in the right direction, maybe it's a bug on mine I dont know, but I'm pretty stoked, and you can use the double tap home button to do basic functions such as changing the song;) Good work Gendai!
Comments
I hadnt even thought to try it since it hasnt worked in the past
Good find!!!
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
@qs I hope it's not a bug!
Have a button you press that switches off music in your game. Save it. Have the game check to see if this is on at the start so it doesn't start playing the game music.
That way, if you start playing music outside the game, it should *theoretically* keep going once you start....
Don't get too excited while it's unofficial though... it'll probably get deprecated like some other....
...
...
...
...
...
features I won't mention...
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
WHAT???
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Firstly, have a 'splash' screen with an actor that will load in attributes. We'll come back to that in a bit.
Then on your main title screen, or wherever you have the sound option, put in an actor that when touched, switches the variable 'MusicOn' on and off (this uses the condition (game.music+1)%2 if I remember correctly off the top of my head.
Also have a save behaviour here that's activated when the actor is pressed. Call the key something like 'music' and the variable should be your MusicOn variable.
Then, go back to your splash screen. Have an invisible actor in there with a simple Load behaviour. Key - music - variable game.MusicOn
Using this method, I've gone into my game and the music's on the first time.
If I switch the music off and then leave the game, I can start my ipod playing my own music, go into the game, and it carries on playing without interruption from the game music (unless you switch it back on of course!).
So, it works in the viewer. Not tried putting a build onto an actual iphone for testing. May try that this weekend.
It's not perfect, but it does work.
Hope that helps!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
If you have the iPhone headphones plugged in, you can use the little switch to control everything too. You can pause and resume, fast-forward, rewind and adjust volume.
The game plays fine underneath with sound effects working as you'd expect.
It's actually very nice - would be great to have a feature in GS that essentially says:
If iPod is ON, then mute game.music. Then you wouldn't need the workaround I described.
Still, better than nothing, eh?
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io