Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_shuffle_controls_snowdin_13_yellow

(view raw script w/o annotations or w/e)
1
function scr_shuffle_controls_snowdin_13_yellow
scr_shuffle_controls_snowdin_13_yellow

function scr_shuffle_controls_snowdin_13_yellow() //gml_Script_scr_shuffle_controls_snowdin_13_yellow { var key_left = global.left_keyp var key_right = global.right_keyp var key_select = keyboard_multicheck_pressed(0) if (shufflers_select == true) { if key_right { audio_play_sound(snd_mainmenu_select, 20, 0) switch current_shuffler { case 0: current_shuffler = 1 break case 1: current_shuffler = 2 break case 2: current_shuffler = 0 break } } if key_left { audio_play_sound(snd_mainmenu_select, 20, 0) switch current_shuffler { case 0: current_shuffler = 2 break case 1: current_shuffler = 0 break case 2: current_shuffler = 1 break } } if key_select { audio_play_sound(snd_confirm, 20, 0) shufflers_select = false timer += 1 } } }
() //gml_Script_scr_shuffle_controls_snowdin_13_yellow
2
{
3
    var key_left = global.left_keyp
4
    var key_right = global.right_keyp
5
    var key_select = keyboard_multicheck_pressed(0)
6
    if (shufflers_select == true)
7
    {
8
        if key_right
9
        {
10
            audio_play_sound(snd_mainmenu_select, 20, 0)
11
            switch current_shuffler
12
            {
13
                case 0:
14
                    current_shuffler = 1
15
                    break
16
                case 1:
17
                    current_shuffler = 2
18
                    break
19
                case 2:
20
                    current_shuffler = 0
21
                    break
22
            }
23
24
        }
25
        if key_left
26
        {
27
            audio_play_sound(snd_mainmenu_select, 20, 0)
28
            switch current_shuffler
29
            {
30
                case 0:
31
                    current_shuffler = 2
32
                    break
33
                case 1:
34
                    current_shuffler = 0
35
                    break
36
                case 2:
37
                    current_shuffler = 1
38
                    break
39
            }
40
41
        }
42
        if key_select
43
        {
44
            audio_play_sound(snd_confirm, 20, 0)
45
            shufflers_select = false
46
            timer += 1
47
        }
48
    }
49
}