| 1 | hh = (obj_ultimatarget.x - x) / 20; |
| 2 | if (hh > 1) |
| 3 | hh = 1; |
| 4 | if (hh < -1) |
| 5 | hh = -1; |
| 6 | if (side == 0) |
| 7 | { |
| 8 | if (hh < 0) |
| 9 | hh = 0; |
| 10 | } |
| 11 | if (side == 1) |
| 12 | { |
| 13 | if (hh > 0) |
| 14 | hh = 0; |
| 15 | } |
| 16 | vv = (obj_ultimatarget.y - y) / 20; |
| 17 | if (vv > 1) |
| 18 | vv = 1; |
| 19 | if (vv < -1) |
| 20 | vv = -1; |
| 21 | if (vv > 0) |
| 22 | vv = 0; |
| 23 | hspeed += hh; |
| 24 | vspeed += vv; |
| 25 | if (speed > 22) |
| 26 | speed = 22; |
| 27 | image_angle = direction; |
| 28 | huer += 20; |
| 29 | image_blend = make_color_hsv(huer, 60, 255); |
| 30 | trail.image_blend = image_blend; |