0 Members and 2 Guests are viewing this topic.
thx, well, i don't really know how to make it possible to have multiple lines (for drawing reasons). When is display it, it would have to know when it has to start a new row, and then the total lay-out will be f***ed up... so if you know how, tell me, it would certainly improve it (by now the description must be 30 chars long, instead of 20 in the movie)
text = "Hello there, something has to be written here"temptext = texttempsentence = ""textsave = ""drawtext = ""sentnr = 1function on.paint(gc) for i=1,string.len(text) do if string.sub(text,i,i+1)==" " then gc:drawString("space",0,180,"top") tempsentence = tempsentence..string.sub(temptext,0,i) end if string.len(tempsentence)==20 then gc:drawString("20",160,180,"top") gc:drawString(tempsentence,0,10*sentnr,"top") temptext = string.sub(temptext,20,string.len(temptext)-20) sentnr = sentnr+1 tempsentence = "" end endend
i've tried over 10.000 possibilities, but it still does not work for some mysterious reasons