/*-- Brick --*/ #strict local pSchatten; local fVer,iYL,iYH; func Initialize() { SetAction("Flying"); SetPhase(Random(2)); SetDir(Random(2)); ContactTop(); iYL = 650; iYH = 100; return(1); } func ContactBottom() { SetYDir(-10); } func ContactTop() { SetYDir(10); } func CheckHit() { if (GetXDir() == 0 && GetYDir() == 0) { SetXDir(RandomX(-100,100)); SetYDir(RandomX(-100,100)); } if (GetY() >= iYL) ContactBottom(); if (GetY() <= iYH) ContactTop(); return(1); }