Undertale script viewer

← back to main script listing

gml_Object_obj_choicer_KeyPress_39

related scripts: Alarm_0Alarm_1Create_0KeyPress_37KeyPress_39 Other_10Step_0

(view raw script w/o annotations or w/e)
1
if (mychoice == 0)
2
    mychoice = 1;
3
else
4
    mychoice = 0;
5
snd_play(snd_squeak);
6
if (mychoice == 1)
7
    x = x1;
8
else
9
    x = x0;