Undertale script viewer

← back to main script listing

gml_Object_obj_switchbasic_Step_0

(view raw script w/o annotations or w/e)
1
if (myinteract == 1 && on == 1)
2
{
3
    on = 0;
4
    myinteract = 0;
5
    image_index = 0;
6
}
7
if (myinteract == 1 && on == 0)
8
{
9
    on = 1;
10
    myinteract = 0;
11
    image_index = 1;
12
}