Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shutta_photo_controller_Step_2

(view raw script w/o annotations or w/e)
1
if (i_ex(obj_lancergotchi))
2
{
3
    reticle_over_good_shot = false;
4
    if (place_meeting(x, y, obj_heroparent) || (place_meeting(x, y, obj_lancergotchi) && collision_circle(x, y, reticle_size + 35, obj_lancergotchi, false, true) && obj_lancergotchi.sprite_index == spr_ch3_dw_shutta_lancer_tongue))
5
        reticle_over_good_shot = true;
6
}
7
if (i_ex(obj_shutta_nobyact_shutta))
8
{
9
    var _trueshutta = -1;
10
    if (image_alpha >= 1)
11
    {
12
        for (var i = 0; i < instance_number(obj_shutta_nobyact_shutta); i++)
13
        {
14
            _lg[i] = instance_find(obj_shutta_nobyact_shutta, i);
15
            if (_lg[i].facing == 1 && _lg[i].sprite_index == spr_shutta_jump)
16
                _trueshutta = _lg[i];
17
        }
18
    }
19
    reticle_over_good_shot = false;
20
    if (place_meeting(x, y, obj_heroparent) || (_trueshutta != -1 && place_meeting(x, y, _trueshutta) && collision_circle(x, y, reticle_size + 40, _trueshutta, false, true)))
21
        reticle_over_good_shot = true;
22
}