Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_catapult_payload_Other_11

(view raw script w/o annotations or w/e)
1
if (launched == false)
2
{
3
    var x_offset = disjoint_x * cos(degtorad(id_arm.image_angle))
4
    var y_offset = disjoint_x * sin(degtorad(id_arm.image_angle))
5
    x = id_arm.x + x_offset
6
    y = id_arm.y - y_offset
7
    x_offset = disjoint_y * (cos(degtorad(id_arm.image_angle + 90)))
8
    y_offset = disjoint_y * (sin(degtorad(id_arm.image_angle + 90)))
9
    x += x_offset
10
    y -= y_offset
11
}