| 1 |
if (image_index >= index_trigger_bg && trigger_bg == false) |
| 2 |
{ |
| 3 |
event_user(0); |
| 4 |
trigger_bg = true; |
| 5 |
} |
| 6 |
if (obj_enemy_controller_feisty_four.vanish_type == "Mooch Smack") |
| 7 |
{ |
| 8 |
if (image_index >= 10 && mooch_smack_approach == false) |
| 9 |
{ |
| 10 |
mooch_smack_approach = true; |
| 11 |
mooch_smack_x_start = x; |
| 12 |
} |
| 13 |
} |
| 14 |
if (mooch_smack_approach == true && image_index <= 14) |
| 15 |
{ |
| 16 |
var mooch_smack_x_target = 318; |
| 17 |
var mooch_smack_x_dist = mooch_smack_x_start - mooch_smack_x_target; |
| 18 |
var mooch_smack_x_multi = (image_index - 9) / 5; |
| 19 |
x = mooch_smack_x_start - (mooch_smack_x_dist * mooch_smack_x_multi); |
| 20 |
} |