SOLVED Bugging Audio

libragenmu

Member
So i'm triyng to put a simple music to be my background music, i tried to put on my obj_player and in my obj_title_menu and both play the music but like a million musics at the same time (as if it's creating and playing the musica every second).
I don't have much code for this part, so i think it must be something in my settings or idk the code in my obj so anyway:

Code:
direita = keyboard_check(ord("D"));
cima = keyboard_check(ord("W"));
baixo = keyboard_check(ord("S"));
esquerda = keyboard_check(ord("A"));



//pausar na transicao
if instance_exists(obj_pauser){
veloc = 0;
}


//pausar na leitura
if instance_exists(obj_textbox){
veloc = 0;
}

audio_play_sound(Sound2, 1, false);
this is part of my obj_player.
 

libragenmu

Member
So yeah, i created a var music in the create event = 0 and then an IF music == 0 {plays the music and music++;}
 
Top