Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_rabbitbullet_Step_0

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