for (var i = 0; i < 24;){SetCameraY(GetCameraY()-1); while(TimeCatch + 100 > GetTime()){ ++i;}}
// an if causes this to merely be checked rather than wait for it to be trueif (TimeCatch + 100 < GetTime()) { ++i; TimeCatch = GetTime(); // so it can get ready for the next 100 ms.}
Scenario has a tweener built in, just putting that out there.