string credit_str;

text my_credits
{
string = credit_str;
...
}

function something
{
while(showing_credits)
{
my_credits.pos_y += time_step * scroll_speed_of_credits;
...
wait(1);
}
}

Something like this.