/*
Parameters:
font,x,y,center : the same input parameters as "write()"
speed : The amount of frames is between printing a character on screen
pointer text id: the id of the text written on screen is passed via this pointer
*/
process flash_write(font,x,y,center,string text,speed,pointer text_id)
private
i;
len;
string new_text;
begin
len = strlen(text);
*text_id=write(font,x,y,center,new_text);
for (i=0;i<len;i++)
strcat(new_text,*text[i]);
frame(speed*100);
end
end
|