DestroyObject(Object)
Destroys an object previously created with CreateObject function.
function Main() { //-Box
if(!SearchParameter("BoxDestroyed"))
{
BoxDestroyed.Hide();
Box=CreateObject("Box",185,280);
Box.description="A wooden box, It seems there is something under it.";
Box.use=useBox;
}else{
BoxDestroyed.Show();
Stairs.description="I'm afraid, It's dark";
Stairs.DoorTo("underground");
} }
function VampireCollideBox()
{
DestroyObject(Box);
BoxDestroyed.Show();
Vampire.CollisionWith(null);
CreateParameter("BoxDestroyed");
Stairs.DoorTo("underground");
}
Get the latest version here.