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.
28 lines
594 B
28 lines
594 B
if canbounce
|
|
{
|
|
move_bounce_all(0)
|
|
speed *= 0.5
|
|
if (speed > 0.5)
|
|
rotspeed *= -1
|
|
if playsound
|
|
{
|
|
if (speed > 1 && random(1) < 0.5)
|
|
{
|
|
snd = floor(random(3))
|
|
switch snd
|
|
{
|
|
case 0:
|
|
PlaySoundVisible(sndDebris1, x, y)
|
|
break
|
|
case 1:
|
|
PlaySoundVisible(sndDebris2, x, y)
|
|
break
|
|
case 2:
|
|
PlaySoundVisible(sndDebris3, x, y)
|
|
break
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|