Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_mike_controller_Step_1

(view raw script w/o annotations or w/e)
1
if (microphone_volume >= 100)
2
{
3
    mic_buff++;
4
    if (mic_buff > 120)
5
    {
6
        mic_buff = 0;
7
        mic_reset();
8
    }
9
}
10
else
11
{
12
    mic_buff = 0;
13
}
14
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
15
{
16
    if (keyboard_check(vk_shift) && keyboard_check_pressed(ord("0")))
17
    {
18
        
scr_debug_print
scr_debug_print

function
scr_debug_print(arg0)
{ } function print_message(arg0) { } function debug_print(arg0) { } function scr_debug_clear_all() { scr_debug_clear_persistent(); }
("mic reset");
19
        mic_reset();
20
    }
21
}
22
speedx = lerp(speedx, mx - prevx, 0.75);
23
speedy = lerp(speedy, my - prevy, 0.75);
24
prevx = mx;
25
prevy = my;