L
LegionZ_Gaming
Guest
so im testing a building method and im checking for the snap to grid, free space, and if connected to a block on all sides so u cant create one in thin air i have the free space and the snap to grid but i cant figure out the last one and suggetions?
here is my code i will underline what i need to fix
x = mouse_x
y = mouse_y
move_snap(32,32)
if place_empty(x,y) && place_snapped(OBJ_Building_Block_Temp +- 32, OBJ_Building_Block_Temp +- 32) && mouse_check_button_released(mb_left)
{
instance_create_layer(x,y,"Instances",OBJ_Building_Block_Temp)
}
i will also need it to follow the object while it moves in the game
here is my code i will underline what i need to fix
x = mouse_x
y = mouse_y
move_snap(32,32)
if place_empty(x,y) && place_snapped(OBJ_Building_Block_Temp +- 32, OBJ_Building_Block_Temp +- 32) && mouse_check_button_released(mb_left)
{
instance_create_layer(x,y,"Instances",OBJ_Building_Block_Temp)
}
i will also need it to follow the object while it moves in the game