GML
if reload = 0 && movement = 0
{
if keyboard_check(vk_space)
{
alarm[0]=30
reload = 1
image_speed = 0.2
audio_play_sound(snd_cannonshot,10,0)
instance_create(x+lengthdir_x(dlugosc_lufy,direction-30),y+lengthdir_y(dlugosc_lufy,direction-30),obj_bullet);
instance_create(x+lengthdir_x(dlugosc_lufy,direction ),y+lengthdir_y(dlugosc_lufy,direction ),obj_bullet);
instance_create(x+lengthdir_x(dlugosc_lufy,direction+30),y+lengthdir_y(dlugosc_lufy,direction+30),obj_bullet);
}
}