Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ch4_PDC03_catty_preach_Alarm_2

(view raw script w/o annotations or w/e)
1
if (current_text != cutoff_text)
2
{
3
    current_index = clamp(current_index + 1, 0, array_length_1d(speech) - 1);
4
    current_text = !stop_speech ? speech[current_index] : cutoff_text;
5
    alarm[0]
 = speech_time * 0.25;
gml_Object_obj_ch4_PDC03_catty_preach_Alarm_0.gml

speech_alpha = 1;
scr_lerpvar_instance(id, "speech_xscale", 0, 0.5, speech_time * 0.25);
scr_lerpvar_instance(id, "speech_yscale", 0, 0.5, speech_time * 0.25);
scr_lerpvar_instance(id, "speech_ypos", 240, 280, speech_time * 0.25);
alarm[1]
 = speech_time * 0.75;
6
}
7
else
8
{
9
    instance_destroy();
10
}