Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_elnina_bouncingbullet_Create_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
destroyonhit = 0;
3
wall_destroy = 0;
4
bounce_count = 0;
5
bounce = 0;
6
bounce_buffer = 0;
7
firstball = false;
8
if (instance_number(obj_elnina_bouncingbullet) == 1)
9
    firstball = true;
10
hspeed = (2 + random(3)) * choose(-1, 1);
11
vspeed = -4;
12
alarm[0]
 = 8;
gml_Object_obj_elnina_bouncingbullet_Alarm_0.gml

exit;
13
image_xscale = 1;
14
image_yscale = 1;
15
image_alpha = 0;
16
difficulty = 0;
17
boss = 0;
18
if (instance_find(obj_elnina_bouncingbullet, 0) == id)
19
    boss = 1;
20
bounce_count = 60;
21
ballvar = 0;
22
index = 0;
23
depth = -10;
24
timerlength = 0;
25
if (i_ex(obj_elnina_lanino_rematch_controller))
26
{
27
    obj_elnina_lanino_rematch_controller.ballvar++;
28
    if (obj_elnina_lanino_rematch_controller.ballvar == 1)
29
        sprite_index = spr_ball_elnina;
30
    if (obj_elnina_lanino_rematch_controller.ballvar == 2)
31
        sprite_index = spr_ball_lanino;
32
    if (obj_elnina_lanino_rematch_controller.ballvar == 2)
33
        obj_elnina_lanino_rematch_controller.ballvar = 0;
34
}