Author Topic: Named bricks?  (Read 452 times)

I was wondering how to involve named bricks, and make them spawn/do something

Code: [Select]
function killbrick(%namedbrick=killed) //Dont know if this is right
{
   %brick.killbrick;
}

Uhmm, What do you mean? Something like this?

Code: [Select]
function BrickTest(%brick)
{
if(%brick.name == "Boobies")
{
%brick.name == "";//Touch them
%brick.killbrick(); //Dispose of
}
}

Just have that function call when you want it. Also, not sure if that is the correct variable for the brick name but it seems pretty generic so why not?

Uhmm, What do you mean? Something like this?

Code: [Select]
function BrickTest(%brick)
{
if(%brick.name == "Boobies")
{
%brick.name == "";//Touch them
%brick.killbrick(); //Dispose of
}
}

Just have that function call when you want it. Also, not sure if that is the correct variable for the brick name but it seems pretty generic so why not?
lol boobies