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.
35 lines
767 B
35 lines
767 B
block = instance_create(x, y, oDestroyedBlock)
|
|
block.type = 1
|
|
block.regentime = -1
|
|
block.link_id = link_id
|
|
block.delay = delay
|
|
with (block)
|
|
event_user(1)
|
|
block1 = collision_point((x + 2), (y - 2), oBlockBombChain, 0, 0)
|
|
block2 = collision_point((x + 18), (y + 2), oBlockBombChain, 0, 0)
|
|
block3 = collision_point((x + 2), (y + 18), oBlockBombChain, 0, 0)
|
|
block4 = collision_point((x - 2), (y + 2), oBlockBombChain, 0, 0)
|
|
if (block1 > oTestKeys)
|
|
{
|
|
with (block1)
|
|
alarm[10] = 4
|
|
}
|
|
if (block2 > oTestKeys)
|
|
{
|
|
with (block2)
|
|
alarm[10] = 4
|
|
}
|
|
if (block3 > oTestKeys)
|
|
{
|
|
with (block3)
|
|
alarm[10] = 4
|
|
}
|
|
if (block4 > oTestKeys)
|
|
{
|
|
with (block4)
|
|
alarm[10] = 4
|
|
}
|
|
sfx_stop(sndBlockDestroy)
|
|
sfx_play(sndBlockDestroy)
|
|
instance_destroy()
|