S
seojaeoh
Guest
Create blackbox, yellowbox, and greenbox in the object compartment, and greenbox creates blackbox in its place with Instance2 when the space key is pressed, blackbox disappears when it is created, and yellowbox is created 4 seconds later.
object 0 =>blackbox object 1 =>yellowbox
greenbox
1.keydown
instance_create_layer(x+0, y+0, "Instances2", object0);
blackbox
1.create:
var a;
a = 1;
instance_destroy();
if(a == 1)
{
alarm[0] = room_speed * 4 ;
}
2.alarm0:
instance_create_layer(x+0, y+0, "Instances2", object1);
yellowbox
nothing
(greenbox=>create black box =>black box destroy and create yellow box)
I'd appreciate it if you could let me know.
object 0 =>blackbox object 1 =>yellowbox
greenbox
1.keydown
instance_create_layer(x+0, y+0, "Instances2", object0);
blackbox
1.create:
var a;
a = 1;
instance_destroy();
if(a == 1)
{
alarm[0] = room_speed * 4 ;
}
2.alarm0:
instance_create_layer(x+0, y+0, "Instances2", object1);
yellowbox
nothing
(greenbox=>create black box =>black box destroy and create yellow box)
I'd appreciate it if you could let me know.