Change Music In Gui!

Discussion in 'How Can I...?' started by volcank, May 17, 2017.

  1. volcank

    volcank Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    794
    Likes Received:
    391
    Hi all,

    Is there a way to change the gameplay music with just a button. I want my music to loop continuously even the worlds change during gameplay but I want the player to have like maybe 3 choices of music in the Game Over or Home Screen so that particular music will play continuously.

    Regards

    Volkan
     
  2. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276


    Is that what you want ?
     
    volcank likes this.
  3. volcank

    volcank Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    794
    Likes Received:
    391
    Yes definetetly. Is this your game? Looks cool. I would appreciate if you could help me on this. Thanx a lot.
     
  4. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    On the music selection screen add navigation buttons. Each goes to a screen with different background music, then with a redirection Event Observer go back to the main menu or back to music selection screen. Obviously all other UI will have no music at all. That also means gameplay and game over and any UI has no music set of their own.
     
    blad300 and volcank like this.
  5. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    [​IMG]
    Look like this, but @trudnai version it's much better
     
    volcank likes this.
  6. volcank

    volcank Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    794
    Likes Received:
    391
    Yes this is definetly not what I need but I might use it for different music for different levels kind of game. Thank you. I made work @trudnai 's example. It worked great. Thank you.
     
    Last edited: May 17, 2017
    blad300 likes this.
  7. volcank

    volcank Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    794
    Likes Received:
    391
    WOW Appreciate so much just what I was looking for. It worked great!Thank You so much!!!
     
    trudnai likes this.
  8. volcank

    volcank Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    794
    Likes Received:
    391
    I also figured out that if you connect the start UI directly to the music 1 UI and redirect that to the home screen the music starts to play right away even without selecting it. Then you can still select that music and other musics over and over again Anyway I guess you already know this only I got excited a little about this :)
     
    trudnai, playsgames6666 and blad300 like this.

Share This Page