| 1 |
if (live_call()) |
| 2 |
return global.live_result; |
| 3 |
audio_play_sound(snd_enemy_bullet_shot, 1, 0); |
| 4 |
var bullet = instance_create(x, y, obj_battle_enemy_attack_ceroba_flower_spray_bullet); |
| 5 |
bullet.speed = bullet_speed_alt; |
| 6 |
bullet.direction = point_direction(x, y, 320, 320) + bullet_spread_alt; |
| 7 |
if (bullet_spread_inc == true) |
| 8 |
{ |
| 9 |
if (bullet_spread_alt < bullet_spread_alt_max) |
| 10 |
{ |
| 11 |
bullet_spread_alt += bullet_spread_amount; |
| 12 |
} |
| 13 |
else |
| 14 |
{ |
| 15 |
bullet_spread_inc = false; |
| 16 |
bullet_spread_alt -= (bullet_spread_amount / 2); |
| 17 |
} |
| 18 |
} |
| 19 |
else if (bullet_spread_alt > (-bullet_spread_alt_max - (bullet_spread_amount / 2))) |
| 20 |
{ |
| 21 |
bullet_spread_alt -= bullet_spread_amount; |
| 22 |
} |
| 23 |
else |
| 24 |
{ |
| 25 |
bullet_spread_inc = true; |
| 26 |
bullet_spread_alt += (bullet_spread_amount / 2); |
| 27 |
} |
| 28 |
alarm[3] = 2;gml_Object_obj_battle_enemy_attack_ceroba_flower_spray_spawner_pacifist_Alarm_3.gmlif (live_call())
return global.live_result;
audio_play_sound(snd_enemy_bullet_shot, 1, 0);
var bullet = instance_create(x, y, obj_battle_enemy_attack_ceroba_flower_spray_bullet);
bullet.speed = bullet_speed_alt;
bullet.direction = point_direction(x, y, 320, 320) + bullet_spread_alt;
if (bullet_spread_inc == true)
{
if (bullet_spread_alt < bullet_spread_alt_max)
{
bullet_spread_alt += bullet_spread_amount;
}
else
{
bullet_spread_inc = false;
bullet_spread_alt -= (bullet_spread_amount / 2);
}
}
else if (bullet_spread_alt > (-bullet_spread_alt_max - (bullet_spread_amount / 2)))
{
bullet_spread_alt -= bullet_spread_amount;
}
else
{
bullet_spread_inc = true;
bullet_spread_alt += (bullet_spread_amount / 2);
}
alarm[3] = 2;
image_xscale = 1.5;
image_yscale = 1.5; |
| 29 |
image_xscale = 1.5; |
| 30 |
image_yscale = 1.5; |