Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_factory_02_conveyor_puzzle_Draw_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
draw_set_alpha(hint_button_alpha)
4
var check_confirm = keyboard_multicheck(0)
5
var cancel_confirm = keyboard_multicheck(1)
6
draw_sprite(spr_conveyor_puzzle_hint_blue_base, check_confirm, 254, 645)
7
draw_sprite(spr_conveyor_puzzle_hint_red_base, cancel_confirm, 326, 645)
8
var blue_button = 0
9
var red_button = 9
10
switch global.action_key
11
{
12
    case "Z":
13
        blue_button = 0
14
        break
15
    case "X":
16
        blue_button = 8
17
        break
18
    case "A":
19
        blue_button = 2
20
        break
21
    case "B":
22
        blue_button = 4
23
        break
24
    case "Y":
25
        blue_button = 6
26
        break
27
}
28
29
switch global.cancel_key
30
{
31
    case "X":
32
        red_button = 8
33
        break
34
    case "A":
35
        red_button = 2
36
        break
37
    case "B":
38
        red_button = 4
39
        break
40
    case "Y":
41
        red_button = 6
42
        break
43
}
44
45
draw_sprite(spr_conveyor_puzzle_hint_letters, (blue_button + check_confirm), 254, 645)
46
draw_sprite(spr_conveyor_puzzle_hint_letters, (red_button + cancel_confirm), 326, 645)
47
draw_set_alpha(1)