| 1 |
audio_play_sound(snd_enemy_bullet_shot, 1, 0); |
| 2 |
var bullet = instance_create(x, y, obj_battle_enemy_attack_ceroba_flower_spray_bullet); |
| 3 |
bullet.speed = bullet_speed; |
| 4 |
bullet.direction = point_direction(x, y, 320, 320) + bullet_spread; |
| 5 |
if (bullet_spread_inc == true) |
| 6 |
{ |
| 7 |
if (bullet_spread < bullet_spread_max) |
| 8 |
{ |
| 9 |
bullet_spread += bullet_spread_amount; |
| 10 |
} |
| 11 |
else |
| 12 |
{ |
| 13 |
bullet_spread_inc = false; |
| 14 |
bullet_spread -= (bullet_spread_amount / 2); |
| 15 |
} |
| 16 |
} |
| 17 |
else if (bullet_spread > (-bullet_spread_max - (bullet_spread_amount / 2))) |
| 18 |
{ |
| 19 |
bullet_spread -= bullet_spread_amount; |
| 20 |
} |
| 21 |
else |
| 22 |
{ |
| 23 |
bullet_spread_inc = true; |
| 24 |
bullet_spread += (bullet_spread_amount / 2); |
| 25 |
} |
| 26 |
alarm[0] = 2;gml_Object_obj_battle_enemy_attack_ceroba_split_spray_spawner_Alarm_0.gmlaudio_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;
bullet.direction = point_direction(x, y, 320, 320) + bullet_spread;
if (bullet_spread_inc == true)
{
if (bullet_spread < bullet_spread_max)
{
bullet_spread += bullet_spread_amount;
}
else
{
bullet_spread_inc = false;
bullet_spread -= (bullet_spread_amount / 2);
}
}
else if (bullet_spread > (-bullet_spread_max - (bullet_spread_amount / 2)))
{
bullet_spread -= bullet_spread_amount;
}
else
{
bullet_spread_inc = true;
bullet_spread += (bullet_spread_amount / 2);
}
alarm[0] = 2;
image_xscale = 1.5;
image_yscale = 1.5; |
| 27 |
image_xscale = 1.5; |
| 28 |
image_yscale = 1.5; |