Help requires: Distorted "game over" alert

Get help using Construct 2

Post » Thu Feb 20, 2014 5:25 pm

Hello,

I've added audio to a shooter I spun off from the make-a-shooter tutorial game.

The aim of the game is to kill all the ghosts, grab the red keycard, and get to the exit: the yellow and black area.

The problem I'm faced with is the "game over" sound. When you enter the exit after killing the ghosts the background music should stop and "Game Over" play. If you try it out, you can hear it's stuttering and distorted.

However, if the same alert is played when the player dies "game over" plays properly.

Both events use the similar routines. The only differences are the Player sprite is destroyed when he's killed, and the music stops playing when the player successfully reaches the exit panel.

I've tried disabling the "stop music" event, reordering the events' orders, adding "Player destroy" to the gameover event structure the "gameover" sub-routine, and re-imported the gameover sound effect. So far nothing has helped.

I've set up the game to make testing this easier: using the cursor keys to move head up to the yellow area to end the game successfully. To commit suicide run into 5 ghosts.

Can anyone offer any assistance with this? The game's Capx file is below.

Thanks.

- Richard

Ghost Hunt v5 Capx
B
7
S
1
Posts: 17
Reputation: 646

Post » Thu Feb 20, 2014 5:50 pm

Hi,

have you tried using "On collision with Exit" instead of "Is overlapping Exit? "Is overlapping" condition triggers like every tick thus the "game over" sound is repeated many times.

Regards,
Aruche
B
163
S
120
G
9732
Posts: 42
Reputation: 4,875,331


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 5 guests