Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_bullet_scarecrow2_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (bounce == 0)
3
    basey = parent.y;
4
x = (parent.x + (sin(wobble) * 3)) - (obj_bullet_wheelspring.hspeed / (1 + (bounce / 12)));
5
if (bounce > 0 || bouncespeed > 0)
6
{
7
    bounce += bouncespeed;
8
    if (bounce <= 0)
9
    {
10
        bounce = 0;
11
        grav = 0.139;
12
    }
13
    bouncespeed -= grav;
14
}
15
y = (basey - 39 - bounce) + (2 * obj_bullet_wheelspring.image_index);