New user here
I'm making a small stealth game, but I'm having this audio problem where the game skip the music that's suppose to play when you reach the goal. Does anyone know how to solve this?
Is there any background music playing?
I think you need to stop all music and play the goal.
There is no background music in the game, but there is title music. I'll try stopping all of the music. I'll report back if it works or not.
Edit: It didn't work.
Sorry for making two replies but, I don't know how to post images on the forum so I'll put a link to the screenshot of my game layout. ibb.co/hnwOey
I still haven't found the root the problem. I hope I someone can provide me an answer.
I made the same as your screenshot and everything work normally.
drive.google.com/open
And one question, how can your two objects collide with together ?
Because I saw them spawn in different place, so if they are not collide, the Level Clear won't play.
Develop games in your browser. Powerful, performant & highly capable.
Thanks I'll try using that example and the way I make the objects collide the object is by moving the blue square towards the red square with the arrow keys. Does doing that add to the problem?
I noticed the layout was made in a platformer style and my layout is made in a 8-directional style.
Maybe this has something to do with the problem.
I think the behavior Platform or 8 Directions is not the problem.
I changed to 8 Directions and it still working.
Did you invisible it or doing something with collision in Image Editor?
I don't know what that means exactly, but on collision I set it to destroy both the player and enemy sprite. Now I'm changing it to set the the sprite invisible while disabling them to see if it makes a difference.
I'll report the results later.
I finally fixed the problem. I don't know what was causing it, but the audio is now playing normally. Thanks for the help.