J
jakubkman
Guest
What i'm trying to do is find out if the blocks around a block have the variable owner set to 1.
this is my current code.im not sure what i did wrong.maybe its completely wrong.i dont know.please help
{
this is my current code.im not sure what i did wrong.maybe its completely wrong.i dont know.please help
{
Code:
north=instance_id=(instance_place(x+3,y+3,other))
east=instance_id=(instance_place(x+27,y+5,other))
south=instance_id=(instance_place(x+28,y+28,other))
west=instance_id=(instance_place(x+5,y+27,other))
with (north)
{
if owner = 1
{
instance_destroy()
}
}
with (east)
{
if owner = 1
{
instance_destroy()
}
}
with (south)
{
if owner = 1
{
instance_destroy()
}
}
with (west)
{
if owner = 1
{
instance_destroy()
}
}