how to make my music play without stopping
future_games_101
Member Posts: 58
ok, so I watched tshirtbooth's videos online about adding music and he said that you need to find an actor at the beginning of the game that isn't going to be in the rest of the game. Then put the "play music" behavior on that actor and then click loop. and that did work, but on my game I have levels and on my levels I say, when " so and so "actor collides with "so and so" actor, reset scene. But when they collide and reset the scene they stop the music. can somebody help me.
Best Answer
-
The_Gamesalad_Guru Posts: 9,922When you use reset it turns everything to default this includes reset scene what you need is an actor in each scene that has play music and select resume current music. Yes when you do a hard reset the music will stop there is no way around that but you can resume it when that scene loads after the reset. Reset is easier to reestablish a scene but it does have it's drawbacks and the way around them is to code ones own quasi reset.
Answers
can you please tell me what is the structure of the scenes you have?
for example: intro > menu > gameplay ?
if so you can have an actor in the intro with the music in a rule which will check if the music is running, and if not it will start the music.
this actor can be placed in any scene you want.
I know this is an old thread but just in case someone searches the forum I´ll just tell how I did this. Made an "init" scene in front of all other scenes, put an actor in it that starts the music and then directly changes to the start scene
You can get all latest music for free on your Android and iOS devices using Setbeat app. Download it from http://setbeatapp.com