You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
727 B
31 lines
727 B
if (vspeed != 0)
|
|
{
|
|
repeat (4)
|
|
{
|
|
expl = instance_create(x, (y + 2), oFXAnimSpark)
|
|
expl.image_speed = 0.2
|
|
expl.additive = 0
|
|
expl.sprite_index = sWaterParticle
|
|
expl.direction = (45 + random(90))
|
|
expl.speed = (1 + random(1))
|
|
expl.gravity_direction = 270
|
|
expl.gravity = 0.2
|
|
}
|
|
snd = floor(random(3))
|
|
switch snd
|
|
{
|
|
case 0:
|
|
PlaySoundVisible(sndWaterDrop1, x, y)
|
|
break
|
|
case 1:
|
|
PlaySoundVisible(sndWaterDrop2, x, y)
|
|
break
|
|
case 2:
|
|
PlaySoundVisible(sndWaterDrop3, x, y)
|
|
break
|
|
}
|
|
|
|
instance_create(startx, starty, oWaterDrop)
|
|
instance_destroy()
|
|
}
|