|
1
|
var face = spr_jackenpumpkinlaugh_nomouth;
|
|
2
|
var mouth = 1809;
|
|
3
|
var animindex = 0;
|
|
4
|
idealmouthscale = 2 + (imgindex * 1.5);
|
|
5
|
mouthscale = lerp(mouthscale, idealmouthscale, 0.5);
|
|
6
|
idealwidth = 2 - (imgindex * 0.2);
|
|
7
|
image_yscale = lerp(image_yscale, idealwidth, 0.6);
|
|
8
|
myangle = 0 + ((idealwidth - 2) * 8);
|
|
9
|
drawy = lerp(y, y + ((2 - image_yscale) * 20), 0.6);
|
|
10
|
if (mouthscale > 2.5)
|
|
11
|
animindex = 1;
|
|
12
|
draw_sprite_ext(face, animindex, x, drawy, image_xscale, image_yscale, myangle, c_white, 1);
|
|
13
|
draw_sprite_ext(mouth, 0, x, drawy + 40, 2, mouthscale, mouthangle, c_white, 1);
|