Change Music During Gameplay in Unreal 5

Поделиться
HTML-код
  • Опубликовано: 2 авг 2024
  • In this video we learn how to fade in music tracks inside of our Level Blueprints. This is not a complex system, but a good way to start using music during gameplay!
    00:00 - Intro
    00:24 - Import Music
    00:53 - Set Looping
    01:26 - Create MusicPlayer
    02:55 - Play on Level Begin
    05:17 - Play On Trigger
    08:16 - Final Result

Комментарии • 23

  • @amorousmartin
    @amorousmartin Год назад

    Thank you so much! Very easy to follow your instructions and it worked the first time.

  • @JohannaKissel
    @JohannaKissel Месяц назад +1

    Hey, do you know why the second method isn't working with the VRPawn blueprint with teleportation. Is there anything else to be aware of?

  • @elianoachilli1567
    @elianoachilli1567 Год назад +1

    Thank you so much!!! Very helpful

  • @wolfwirestudios
    @wolfwirestudios 3 месяца назад

    Nice stuff. Well explained. You earned my sub mate !

  • @islandonlinenews
    @islandonlinenews 10 месяцев назад +2

    Hi, how do I get the music to stop on same trigger when crossing again? Thank.

  • @RoganDorz
    @RoganDorz 9 месяцев назад

    Thank you!

  • @JohannaKissel
    @JohannaKissel Месяц назад

    Hey ◡̈ Do you know why the second method isn't working with die VRPawn Blueprint with teleportation. Is there anything more to be aware of?

  • @cagedcalamitymusic7818
    @cagedcalamitymusic7818 Год назад

    this was so helpful I have to ask how would you go about adding sound effects to a character for instance maybe they swing a sword or you can here their feet patter along the floor as they are walking and running ?. I am currently in unreal engine 4.27

  • @ZimMabu_GameDev.
    @ZimMabu_GameDev. 6 месяцев назад

    thanks

  • @Rockshurt
    @Rockshurt Год назад

    Thanks, good tutorial. How can I change music in game from a widget screen?

  • @rorymacleod1291
    @rorymacleod1291 Год назад

    you legend

  • @aaronwoods-lee7700
    @aaronwoods-lee7700 4 месяца назад

    Do you have those sound tracks? They sound like they might be nice.

  • @justDausDev
    @justDausDev Год назад

    Hello AcDec
    Love your video, I want to ask something, can you put more trigger more than 2? do you need to change the blueprint if you put more music and trigger?
    sorry for my bad english 😅

    • @acdev7027
      @acdev7027  Год назад +1

      Yep, if you want to change music based on level triggers you would just add more triggers inside the level and link them in the Level Blueprint the same way we do in this video. If you wanted to do music based on something else (low health or whatever) it would be more complicated.

  • @Fatal-wc4ul
    @Fatal-wc4ul Год назад +1

    I'm struggling right now with how to trigger a sound for indoors as opposed to outdoors. For example While outdoors I want the main music to play, when I enter a building I want another sound to play, upon exiting that building I would like the main outdoor music to play again. How can I go about that?

    • @spunkin49
      @spunkin49 Год назад

      im sure there is a way to set outdoors and indoor to their own thing, but that might be complicated. i imagine that you could just do this method, where each indoor has its own audio triggers to change the music, and then in the code you could probably do an "event end overlap" type thing and it switches back to achieve the effect you are going for

  • @joshuacarro
    @joshuacarro 2 месяца назад

    Is there a way to make the 1st track fade out while the other fades in?

    • @acdev7027
      @acdev7027  2 месяца назад +1

      Yep! I added a video a few months ago on how to do cross fading:
      ruclips.net/video/IfbU1z0Jwns/видео.htmlsi=AEOH7fJBYZMuUieR

    • @joshuacarro
      @joshuacarro 2 месяца назад

      @@acdev7027 You rock!!

  • @Misterred-GW2
    @Misterred-GW2 2 месяца назад

    Heyy little question, why does the file have to be WAV? Doestn mp3 work aswell? I know there is some quality loss, but does it have to be WAV?

    • @acdev7027
      @acdev7027  2 месяца назад +1

      I know historically Unreal has only accepted .wav files so it's what I've always done. I just tested .mp3 import and it didn't recognize it and classified it as 'generic media file' so I'm pretty sure they won't work, but maybe there's a way (not sure).

    • @Misterred-GW2
      @Misterred-GW2 2 месяца назад

      @@acdev7027 okay thank you very much!

  • @ezio_3602
    @ezio_3602 4 месяца назад

    It doesn't work