| 1 | if (follow == 1) |
| 2 | { |
| 3 | moving = 0; |
| 4 | if (obj_mainchara.x < (x - 34)) |
| 5 | { |
| 6 | x -= 3; |
| 7 | if (speedup == 1) |
| 8 | x -= 3; |
| 9 | sprite_index = lsprite; |
| 10 | image_speed = 0.25; |
| 11 | moving = 1; |
| 12 | look = 0; |
| 13 | } |
| 14 | if (obj_mainchara.x > (x + 34)) |
| 15 | { |
| 16 | x += 3; |
| 17 | if (speedup == 1) |
| 18 | x += 3; |
| 19 | sprite_index = rsprite; |
| 20 | image_speed = 0.25; |
| 21 | moving = 1; |
| 22 | look = 0; |
| 23 | } |
| 24 | if (moving == 0) |
| 25 | { |
| 26 | speedup = 0; |
| 27 | image_index = 0; |
| 28 | image_speed = 0; |
| 29 | look += 1; |
| 30 | if (look > 60) |
| 31 | sprite_index = usprite; |
| 32 | } |
| 33 | } |
| 34 | if (x > 450 && con == 0 && global.flag[91 trash_save_mkid_pos] < 6) |
| 35 | { |
| 36 | hspeed = 6; |
| 37 | global.flag[91 trash_save_mkid_pos] = 6; |
| 38 | follow = 2; |
| 39 | con = 1; |
| 40 | sprite_index = rsprite; |
| 41 | image_index = 0; |
| 42 | image_speed = 0.25; |
| 43 | alarm[3] = 60; |
| 44 | } |