I use the script for typewriter style credits (one letter at a time).
The function I use for this is :
Code: ags
I seem to have to replace the CreateTextOverlay function by
static Overlay* Overlay.CreateTextual(int x, int y, int width,
Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, int font, int color, string text)
according to the help files.
I do not know what to do with this code snip ??
What does a star mean? How do I declare, define, adjust my function??
Any help would be greatly appreciated since I have stumbled over this before.
I was quite fluent in the old script, but now I get confused over and over again....
But I'll learn how to overcomeÃ, :-P
The function I use for this is :
function TypeLine(string line, int vspacing){
Ã,Â
Ã, int length=0;
Ã, int i = 0;
Ã, string displayedline;
Ã, int textid = 0;
Ã, length = 0;Ã,Â
Ã, i=0;
Ã, StrCopy(displayedline," ");
Ã,Â
Ã, textid = CreateTextOverlay(xpos,50,400,font,colour,displayedline);
Ã, length=StrLen(line); //set string length
Ã, while(i<length){
Ã, Ã,Â
Ã, Ã, StrFormat(displayedline, "%s%c", displayedline, StrGetCharAt(line,i));
Ã, Ã, SetTextOverlay(textid, 10,vspacing,400, font, colour, displayedline);
Ã, Ã, if (StrGetCharAt(line,i) == ' '){
Ã, Ã, Ã, Wait(10);
Ã, Ã, }
Ã, Ã, else{
Ã, Ã, Ã, PlaySound(1);
Ã, Ã, Ã, Wait(5);
Ã, Ã, }
Ã, Ã, i++;
Ã, }
Ã, return textid;
}
I seem to have to replace the CreateTextOverlay function by
static Overlay* Overlay.CreateTextual(int x, int y, int width,
Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã, int font, int color, string text)
according to the help files.
I do not know what to do with this code snip ??
What does a star mean? How do I declare, define, adjust my function??
Any help would be greatly appreciated since I have stumbled over this before.
I was quite fluent in the old script, but now I get confused over and over again....
But I'll learn how to overcomeÃ, :-P