| 1 | if (shake > 0) |
| 2 | { |
| 3 | x = (nowx + random(shake)) - random(shake); |
| 4 | y = (nowy + random(shake)) - random(shake); |
| 5 | } |
| 6 | if (walking == 1) |
| 7 | nowx -= 1; |
| 8 | if (active == 1) |
| 9 | { |
| 10 | atimer += 1; |
| 11 | if (atimer > 5) |
| 12 | { |
| 13 | if (trueindex < 5) |
| 14 | trueindex += 1; |
| 15 | } |
| 16 | } |
| 17 | draw_sprite_ext(sprite_index, 0, x, y, 2, 2, 0, c_white, 1); |
| 18 | draw_sprite_ext(spr_growneck, trueindex, x, y, 2, 2, 0, c_white, 1); |