| 1 | if (y > y_end) |
| 2 | { |
| 3 | if (sprite_index != spr_dunes_10_pebbles_fall) |
| 4 | { |
| 5 | sprite_index = spr_dunes_10_pebbles_fall; |
| 6 | image_index = 0; |
| 7 | vspeed = 0; |
| 8 | } |
| 9 | else if (on_animation_end()) |
| 10 | { |
| 11 | image_index = image_number - 1; |
| 12 | image_speed = 0; |
| 13 | if (!alarm[0]) |
| 14 | alarm[0] = 10; |
| 15 | } |
| 16 | exit; |
| 17 | } |
| 18 | vspeed += 0.1; |