Deltarune script viewer

← back to main script listing

gml_Object_obj_face_ch1_Step_0

(view raw script w/o annotations or w/e)
1
buffer -= 1
2
if (buffer < 0)
3
{
4
    if (mouthmove == 1 && mouthtimer == 0)
5
    {
6
        mouthtimer = 1
7
        face_index = 1
8
    }
9
}
10
if (mouthtimer > 0)
11
    mouthtimer += rate
12
if (mouthtimer >= 1 && mouthtimer <= 5)
13
    face_index = 1
14
else
15
    face_index = 0
16
if (mouthtimer >= 9)
17
{
18
    mouthtimer = 0
19
    mouthmove = 0
20
}