Deltarune (Chapter 3) 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
hspeed = (2 + random(3)) * choose(-1, 1);
8
vspeed = -4;
9
alarm[0]
 = 8;
gml_Object_obj_elnina_bouncingbullet_Alarm_0.gml

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