Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_ch3_teevie_screen_gold_Step_0

(view raw script w/o annotations or w/e)
1
if (is_active)
2
    exit;
3
if (!i_ex(obj_mainchara))
4
    exit;
5
var _on_screen = rectangle_in_rectangle(bbox_left, bbox_top, bbox_right, bbox_bottom, camerax(), cameray(), camerax() + view_wport[0], cameray() + view_hport[0]);
6
if (!_on_screen)
7
    exit;
8
if (obj_mainchara.x > (x - 10) && obj_mainchara.x < (x + 50) && obj_mainchara.y >= (y + 20))
9
    turn_on();