Make Games in UE5 with C++: Background Music

Why was this lesson in Blueprint instead of C++? This was kind of frustrating because while it taught us how to create a looping background song, it did so in Unreal’s BP Event graph, which I am not interested in at the moment. Why wouldn’t we do this in C++? I would assume it would be done in code with GameplayStatics and Soundbase like we used for the last lesson, so why not do it there?

Also, what about engine sounds? I tried adding my own using the last lesson as a guide and I have them playing when I move but it sounds like it is playing multiple times on top of each other instead of the one time when I hold the button down to move. I also set an idle engine sound but it doesn’t play unless I click left or right.

Interestingly, these engine sounds also cut the music out. it goes away when they play.

Privacy & Terms