| 1 | if (active == 1) |
| 2 | { |
| 3 | image_alpha += 0.02; |
| 4 | sparklefactor += 1; |
| 5 | j = instance_create(x + random(sprite_width), (y - 20) + random(sprite_height / 2), obj_chimesparkle); |
| 6 | j.maxalpha = image_alpha; |
| 7 | if (image_alpha > 1) |
| 8 | image_alpha = 1; |
| 9 | if (sparklefactor > 110) |
| 10 | active = 2; |
| 11 | } |
| 12 | if (active == 2) |
| 13 | { |
| 14 | image_alpha -= 0.02; |
| 15 | if (image_alpha < 0.04) |
| 16 | instance_destroy(); |
| 17 | } |