sBlockDestroy
0
-1
2
0
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
image_speed = 0;
image_index = 0;
state = 0;
statetime = 0;
type = 0;
1
603
7
0
0
-1
2
self
0
0
1
state = 2;
statetime = 0;
visible = true;
image_index = 3;
1
603
7
0
0
-1
2
self
0
0
1
if (state == 0) {
if (statetime == 0) {
if (type == 5) statetime = 3;
image_index = 0;
}
if (statetime > 2) {
sprite_index = sBlockDestroy;
if (image_index < 3) {
image_index += 0.5;
} else {
state = 1;
visible = false;
}
}
statetime += 1;
}
if (state == 2) {
if (image_index > 0) {
image_index -= 0.5;
} else {
image_index = 0;
if (collision_rectangle(x, y, x + 16, y + 16, oCharacter, true, true) > 0 || collision_rectangle(x, y, x + 16, y + 16, oEnemy, true, true) > 0 || (oCharacter.state == 25 || oCharacter.state == 26) && collision_point(x + 24, y + 24, oCharacter, true, true) > 0 && oCharacter.mirror == -1 || collision_point(x - 8, y + 24, oCharacter, true, true) > 0 && oCharacter.mirror == 1) {
state = 0;
alarm[0] = regentime;
} else event_user(0);
}
}
1
603
7
0
0
-1
2
self
0
0
1
if (type == 0) sprite_index = sBlockShoot;
if (type == 1) sprite_index = sBlockBomb;
if (type == 2) sprite_index = sBlockMissile;
if (type == 3) sprite_index = sBlockSMissile;
if (type == 4) sprite_index = sBlockSpeed;
if (type == 5) sprite_index = sBlockStep;
if (type == 6) sprite_index = sBlockPBomb;
if (type == 7) sprite_index = sBlockScrew;
1
603
7
0
0
-1
2
self
0
0
1
if (type == 0) block = instance_create(x, y, oBlockShoot);
if (type == 1) block = instance_create(x, y, oBlockBomb);
if (type == 2) block = instance_create(x, y, oBlockMissile);
if (type == 3) block = instance_create(x, y, oBlockSMissile);
if (type == 4) block = instance_create(x, y, oBlockSpeed);
if (type == 5) block = instance_create(x, y, oBlockStep);
if (type == 6) block = instance_create(x, y, oBlockPBomb);
if (type == 7) block = instance_create(x, y, oBlockScrew);
block.regentime = regentime;
block.active = 0;
block.material = 0;
block.delay = delay;
block.link_id = link_id;
block.visible = true;
instance_destroy();
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
-1