issam
Member
Hello,
I make a simple piano by game maker 1.4, I use about 24 keys as a keybourd each object work by left press as event to play the sound, How can I make 3 buttons at least to play at the same time please?
Edit:
I use the following code in each object but not working:
for(device=0;device<=4;device+=1){
if (device_mouse_check_button_pressed(device,mb_left)) && position_meeting(mouse_x,mouse_y,self)
{
audio_play_sound(name, 10, false);
}
I make a simple piano by game maker 1.4, I use about 24 keys as a keybourd each object work by left press as event to play the sound, How can I make 3 buttons at least to play at the same time please?
Edit:
I use the following code in each object but not working:
for(device=0;device<=4;device+=1){
if (device_mouse_check_button_pressed(device,mb_left)) && position_meeting(mouse_x,mouse_y,self)
{
audio_play_sound(name, 10, false);
}
Last edited: