music...
whaaaat? D: emm.. no idea man
look, i have an object playMusic:
------------------crete event
if (global.music=sndNull) {
sound_play(global.music);
} else {
sound_loop(global.music);
}
-------------------------------
and dis is the world object
Information about object: world
Sprite: sprActionObjects
Solid: false
Visible: false
Depth: 0
Persistent: true
Parent: <no parent>
Mask: <same as sprite>
Create Event:
execute code:
//Introduce aquí las variables que deben setearse al pulsar 'R'
global.matar=0;
//NUNCA ELIMINES ESTE OBJETO//
Other Event: Room Start:
execute code:
//varaibles que se setean cada vez que se inicia una nueva room:
//velocidad predeterminada
room_speed=50;
//título de la ventana de tu juego
//room_caption="I wanna be the Rockman";
Key Press Event for <Escape> Key:
execute code:
//Esc - Salir del juego
file_delete("temp");
game_end();
Key Press Event for D-key Key:
execute code:
//Ctrl + Alt + D - Reiniciación total
if (keyboard_check(vk_control) && keyboard_check(vk_alt)) {
file_delete("temp");
file_delete("save0");
file_delete("save1");
file_delete("save2");
file_delete("save3");
file_delete("save0.bmp");
file_delete("save1.bmp");
file_delete("save2.bmp");
file_delete("save3.bmp");
file_delete("game_errors.log");
file_delete("controls.txt");
file_delete("saveEx0");
file_delete("saveEx1");
file_delete("saveEx2");
file_delete("saveEx3");
game_end();
}
Key Press Event for R-key Key:
execute code:
//reinicia el juego y vuelve al último punto de guardado simpre que la room no sea el menú, la pantalla de 'Press Shift' o la room auxiliar
if room=rDoNotDelete exit;
else
{
if (room!=rMenu && room!=rPressShift && room!=rDoNotDelete) {
sound_stop_all();
loadGame();
}
}
Key Press Event for F2 Key:
execute code:
//reinicia el juego
file_delete("temp");
sound_stop_all();
game_restart();
------------
in the playMusic object i put global.music=sndLevel1, to loop the song in level 1.
now, what do i have to do to make external music? i made the folder, tried that code but gives me error. where i have to put
the music play code, if i put it in the world that means i gotta put the world object in the room too? D: i dont understan anything