Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_rabbitbullet_Step_0

(view raw script w/o annotations or w/e)
1
if (!i_ex(obj_growtangle))
2
{
3
    instance_destroy();
4
    exit;
5
}
6
jumpsiner += 1;
7
if (image_alpha < 1 && active == 0)
8
    image_alpha += 0.1;
9
else
10
    active = 1;
11
bottomy = (obj_growtangle.y + (obj_growtangle.sprite_height / 2)) - 20;
12
jsine = sin(jumpsiner / jumpspeed) * jumpheight;
13
y = (bottomy + jsine) - jumpheight;
14
image_speed = 0;
15
image_index = 1;
16
if (jsine > 0)
17
    image_index = 2;
18
if (jsine > (jumpheight / 2))
19
    image_index = 0;
20
if (x <= (obj_growtangle.x - (obj_growtangle.sprite_width / 2) - 40))
21
    image_alpha -= 0.1;