Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_bullet_thunderball_Draw_0

(view raw script w/o annotations or w/e)
1
if (!freeze)
2
{
3
    shakx = 0;
4
    shaky = 0;
5
}
6
draw_sprite_ext(sprite_index, image_index, xprevious, yprevious, image_xscale + (sin((timer * 0.5) - timerup) * 0.2), image_yscale - (sin((timer * 0.5) - timerup) * 0.2), image_angle, c_gray, image_alpha);
7
if (alarm[4] && alarm[4]
 < 7 && !freeze)
gml_Object_obj_bullet_thunderball_Alarm_4.gml

if (freeze) exit; with (
scr_fire_bullet(x, y, obj_regularbullet, 0, 2, spr_shutta_lightning))
{ image_speed = 0.25; gravity_direction = 0; friction = -0.05; if (i_ex(obj_volumeup)) { image_xscale = 2; image_yscale = 2; grazepoints += 1; } } with (
scr_fire_bullet(x + 8, y, obj_regularbullet, 0, 3, spr_shutta_lightning))
{ image_speed = 0.25; gravity_direction = 0; friction = -0.05; if (i_ex(obj_volumeup)) { image_xscale = 2; image_yscale = 2; grazepoints += 1; } } with (
scr_fire_bullet(x, y, obj_regularbullet, 180, 2, spr_shutta_lightning))
{ image_speed = 0.25; gravity_direction = 180; friction = -0.05; if (i_ex(obj_volumeup)) { image_xscale = 2; image_yscale = 2; grazepoints += 1; } } with (
scr_fire_bullet(x - 8, y, obj_regularbullet, 180, 3, spr_shutta_lightning))
{ image_speed = 0.25; gravity_direction = 180; friction = -0.05; if (i_ex(obj_volumeup)) { image_xscale = 2; image_yscale = 2; grazepoints += 1; } } active = false; alarm[3]
8
{
9
    shakx = choose(-2, 0, 2);
10
    shaky = choose(-2, 0, 2);
11
}
12
draw_sprite_ext(sprite_index, image_index, x + shakx, y + shaky, image_xscale + (sin(timer * 0.5) * 0.2), image_yscale - (sin(timer * 0.5) * 0.2), image_angle, image_blend, image_alpha);