I'm working on creating a script for a non-rs game and am working with a different font. First question: for the function GetTextAtEx what are the values 0,0 for? I know what all the rest of the parameters are, but couldn't find details about that anywhere.Code:chars:= LoadChars2(AppPath+'Fonts/new/'); Result:=GetTextAtEx(x,y,50,chars,false,false,0,0,color,length,false,tr_AllChars); Exit;
Next... for LoadChars2 because I'm using a different font, is there a way to have this loaded automatically like the RS fonts?
Lastly, I know you need to have the exact location of the text, but for the game I'm working with the Y value is always the same, but the x value is different depending on the length of the string because the text is centered. Are there any functions to deal with that?


Reply With Quote










