| 1 | if (image_speed > 0 && image_index >= (image_number - 1)) |
| 2 | { |
| 3 | with (id_bull) |
| 4 | alarm[1] |
| 5 | image_speed = 0; |
| 6 | image_index = image_number - 1; |
| 7 | } |
| 8 | if (image_speed < 0) |
| 9 | { |
| 10 | if (image_index != (image_number - 1)) |
| 11 | can_disappear = true; |
| 12 | if ((image_index <= 0 || image_index == (image_number - 1)) && can_disappear == true) |
| 13 | { |
| 14 | image_speed = 0; |
| 15 | image_index = 0; |
| 16 | } |
| 17 | } |