Código: Selecionar todos
if check_line
{
check_line = 0
var ii = 0;
repeat(40)
{
var i = 0;
var blocks = 0;
repeat(20)
{
if instance_position(960 - tw/2 + 20*i + 10, 540 + th/2 - 20*ii - 10, obj_tetris_blocki) > 0
{
blocks++
dest[i] = instance_position(960 - tw/2 + 10 + 20*i, 540 + th/2 - 10 - 20*ii, obj_tetris_blocki)
show_message(i)
}
i++
}
if blocks = 20
{
var i = 0;
repeat(20)
{
with(dest[i])
{
instance_destroy()
}
i++
}
}
ii++
}
}