Anybody notice music changes!? :)

chosenonestudioschosenonestudios Member Posts: 1,714
edited November -1 in Working with GS (Mac)
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!

Comments

  • chosenonestudioschosenonestudios Member Posts: 1,714
    Is this just me? Or did anybody else notice this?
  • JamesZeppelinJamesZeppelin Member Posts: 1,927
    NO thats awesome!!

    I hadnt even thought to try it since it hasnt worked in the past

    Good find!!!
  • quantumsheepquantumsheep Member Posts: 8,188
    I did notice that actually - just put it down to a bug! :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • chosenonestudioschosenonestudios Member Posts: 1,714
    Yeah I'm definately going to be taking advantage of this from now on:)

    @qs I hope it's not a bug! ;)
  • EastboundEastbound Member, BASIC Posts: 1,074
    What do you mean by "music turned off in your settings"? Just no sounds playing? I don't think I've ever seen a setting for it...
  • chosenonestudioschosenonestudios Member Posts: 1,714
    Yea, just no sounds playing :)
  • quantumsheepquantumsheep Member Posts: 8,188
    Could you theoretically give the user the option to 'use own music'?

    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

  • SingleSparqSingleSparq Member Posts: 1,339
    Watch it quantum... You don't want to get Baaaa-ned! (sorry couldn't resist!) ;)
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Yeah, QS. you should pause and think before posting ;-)
  • quantumsheepquantumsheep Member Posts: 8,188
    I didn't say anything!

    WHAT???

    :D

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • quantumsheepquantumsheep Member Posts: 8,188
    Well, I took my own advice and tried this, and it works a treat.

    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 :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • ORBZORBZ Member Posts: 1,304
    do sound effects work even when iPod music is playing?
  • quantumsheepquantumsheep Member Posts: 8,188
    Yes they do - sound effects work as normal over your own music :D

    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? :D

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

Sign In or Register to comment.