lock46
Member
In the game on the platform, I made a box and if this box is formed, a wall is formed inside the box and holding the player, but the bullet I hit with the gun does not touch the box. I will be glad if you help
"Crate" collision mask;
"Clip(wall)" collision mask;
"Bullet" collision mask;
"Crate" Create event;
"Crate" Destroy event;
"Crate" Step event;
"Crate" collision "Bullet";
"Bullet" collision "Crate";
"Bullet" collision "Clip"(wall);
"Crate" collision mask;
"Clip(wall)" collision mask;
"Bullet" collision mask;
"Crate" Create event;
GML:
hp = 10;
mywall = instance_create_layer(x,y,"clip",Obj_clip)
with (mywall)
{
image_xscale = other.sprite_width / sprite_width;
image_yscale = other.sprite_height / sprite_height;
}
GML:
with (mywall) instance_destroy();
GML:
if (hp <= 0){
instance_destroy();
}
GML:
instance_destroy();
GML:
instance_destroy();
Code:
instance_destroy();
Last edited: