Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_starlo_guns_vertical_gun_Create_0

(view raw script w/o annotations or w/e)
1
image_alpha = 0
2
image_alpha_inc = 0.2
3
var time_to_fade_in = 1 / image_alpha_inc
4
image_angle_inc = 10
5
target_dir = 270
6
if (y > 320)
7
    target_dir = 90
8
direction = target_dir
9
image_angle = target_dir - time_to_fade_in * image_angle_inc
10
can_fire = 0
11
bullet = instance_create(x, y, obj_battle_enemy_attack_starlo_bullet_rain_bullet)
12
bullet.direction = target_dir
13
event_inherited()
14
if (!audio_is_playing(snd_starlo_gun_warn))
15
    audio_play_sound(snd_starlo_gun_warn, 1, 0)
16
audio_shot_can_play = true