1 | var shard_speed_max = 3 |
2 | var shard_speed_inc = shard_speed_max * 2 / bottle_shard_number |
3 | for (var i = 0; i < bottle_shard_number; i++) |
4 | { |
5 | var shard = instance_create(x, y, obj_battle_enemy_attack_starlo_bottle_shard) |
6 | shard.hspeed = (-shard_speed_max) + shard_speed_inc * i |
7 | } |
8 | instance_create(x, (y - 25), obj_battle_enemy_attack_starlo_bottle_explosion) |
9 | audio_play_sound(choose(385, 386), 1, 0) |